Home » Support » Index of All Documentation » Wing IDE Reference Manual » Advanced Debugging Topics »

11.4. Debugging C/C++ and Python together

The Wing debugger is for Python code only at this point and doesn't itself handle stepping into C or C++. However, you can set up VC++ or the gdb debugger in conjunction with the Wing IDE debugger to debug errors in either C or Python at the same time.

This is done by running your Python code under the VC++ or gdb debugger as you would anyway for C/C++ debugging, while using the Wing debugger at the same time by importing wingdbstub into your code.

To debug the C/C++ code you need to be running with a copy of Python compiled from sources with debug symbols. To configure wingdbstub, see the manual section on Debugging Externally Launched Code.

See also this additional information on using gdb and Wing together. Using Wing and VC++ is prone to fewer problems so doesn't currently have its own How-To.

« 11.3. Handling Large Values and Strings in the DebuggerTable of Contents11.5. Debugging Extension Modules on Linux/Unix »