tags:

views:

106

answers:

0

I have built 2 Python extension modules using Visual Studio 2008. I wrote a small test application in Python that imports the modules' functionality and exercises some of it. I can debug the extensions via this small test app using Visual Studio but I want to also debug the test app itself with Winpdb. When I start my small app with Winpdb all the imports from my extensions fail. The environmental variables (PATH and PYTHONPATH) are the same for both the Visual Studio and Winpdb but Winpdb does not seem to find my extension modules. Does the fact that I built my extensions in Debug mode affect the behavior in Winpdb? Has anyone encountered this problem before? Any suggestions would be appreciated. Also is it possible to debug a python app with Winpdb and then attach with Visual Studio to put breakpoints in the extension modules so that I can step through python app and my C++ extensions in the same debug session?

Thanks