[Visualpython-discuss] Debugging Python extensions with Visual Studio
by Robert Ferrell other posts by this author
Oct 30 2003 8:35PM messages near this date
view in the new Beta List Site
Re: [Visualpython-discuss] Unittests don't run with debug
|
Re: [Visualpython-discuss] Debugging Python extensions with Visual Studio
I'm trying to debug a Python extension written in C. I'm on Windows 2000.
I'm using Visual Studio .NET 2003, ActivePython and Visual Python. I
made a "Solution" with 2 projects. One of the projects is C code, which
contains the code for the extension. That project builds a DLL. The
other project contains a Python driver script which imports the extension,
and then calls methods in the extension.
The problem I'm having is I have not found a way to debug the Python
driver script and the C extension code at the same time. I can either
debug the Python driver or the extension, but not both. If I set the
startup project to be the driver, then I can step through the Python.
But, I cannot step into my C code, and if I set breakpoints in the C code
they are ignored. OR, I can set the startup project to be the extension
DLL, in which case I can step through the C code, but cannot pop out to
the driver script and see what is going on in the Python.
How can I debug both pieces of code at the same time?
thanks,
-robert
Thread:
Robert Ferrell
Eric Promislow
Robert Ferrell
|