Debugging C++ code called from Python 2.2 with Visual Studio.NET

olsongt at verizon.net olsongt at verizon.net
Tue Jun 20 10:00:06 EDT 2006


egodet at equisys.com wrote:
> Hi,
> I'm trying to debug some VS native C++ code called from a python script
> (version is 2.2).
> For that, I added the _DEBUG macro in Setup.py but when I rebuild the
> pyd file, I get a compilation error whereby it says that python22_d.lib
> could not be found.
>
> I've seen in various groups that python22_d.lib is not available for
> download anymore but that it is easy to recompile. Could someone send
> it to me, explain how to build it or, even better, both.
>
> I expect that after that, if I recompile the python pyd file, I will be
> able to attach a debugger to it. Could someone confirm this?
>
> Cheers,
> Emmanuel
>
> PS: I'm new to Python and I'm using legacy code.

To elaborate on Frederick's advice, the source .tgzs available on
python.org contain everything you need to build the windows version,
excluding a few modules that require third-party dependancies (tkinter,
ssl, zip, bzip2 and probably a few others).  You'll need VC6.0 as well
for 2.2.




More information about the Python-list mailing list