Watch c++ structure in Visual Studio python debugger.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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