pybind / pybind/pybind11

Watch c++ structure in Visual Studio python debugger.

Open
#1,992 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
18k
Forks
2.3k
Avg merge
5d 17h
Merged PRs (30d)
10

Description

Hi!
Visual studio 2019 allow mixed debugging of python with c++ extensions. It is described in here https://docs.microsoft.com/en-us/visualstudio/python/debugging-mixed-mode-c-cpp-python-in-visual-studio?view=vs-2019#.

Here is a cite from this doc:
if ob_type->tp_init of a given object points at the following function:
static int FobObject_init(FobObject* self, PyObject* args, PyObject* kwds) { return 0; }
then the debugger can correctly deduce that the C type of the object is FobObject.

Does it possible for pybind11 c++ extensions?
I'm trying to register such function in a regular way, but debugger didnt react.

Sorry if its obvious question or it's not a point of pybind11 community.
Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Visual Studio 2019 mixed-mode C/C++ and Python debugging documentation and reviewing how pybind11 C++ extensions expose their types. Determine whether pybind11 can support the debugger's C-type deduction; done means documenting the supported approach or establishing the required project change.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.