Debugging C/C++ and Python Together

Index of All Documentation » Wing Pro Reference Manual » Advanced Debugging Topics »


Wing's debugger is for Python code only and doesn't itself handle stepping into C/C++. However, you can use Visual Studio, gdb, or another debugger concurrently, in order to debug Python and C/C++ at the same time.

The easiest way to do this is to launch the debug process from Wing, note the process ID shown when hovering the mouse over the bug icon in the lower left of Wing's window, and then attach the C/C++ debugger to that process.

Alternatively, it is also possible to launch the debug process with the C/C++ debugger and then initiate debug as described in Debugging Externally Launched Code.

To debug the C/C++ code you need to be running with a copy of Python compiled from sources with debug symbols. Note that Wing's debugger will be unavailable whenever the C/C++ debugger is paused.

Section Contents