Debuggin a ptyhon extension
Sridhar R
sridharinfinity at yahoo.com
Tue May 11 08:39:36 EDT 2004
See this recipe.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/82826
Steve Menard <devilwolf22 at hotmail.com> wrote in message news:<rzxmc.26524$j11.254148 at weber.videotron.net>...
> I am writing a python extension module in VC++ on windows. At some
> point, my extension crashes.
>
> Now I want to debug exactly why. I built the python projects in VC++,
> and put the resulting python_d.exe in my ptyon home directory, and the
> python23_d.dll in the windows/system32 directory. I also tried to put
> the python23_d.dll in python's home directory, to the same result.
>
> Problem is, running my scripts/extension with python_d.exe, it always
> complains it can't find win32api. Yes, I am using win32API to preload a
> dll, and can't really get rid of it.
>
> To try and solve this, I tried replacing the "stock" python.dll with my
> python_d, so at least VC++'s debugger would see the debug info. but I
> got the same result, of win32api not being found ...
>
> What is the best way to go about this? My extension will require a fair
> amount of native code and interacting with the Python code, so being
> able to trace into python would be invaluable.
>
> Are my problems caused because python 2.3.3 (and possible win32all) were
> build using VC.net?
>
> I am grateful for any help you guys can provide.
>
>
> Steve Menard
> devilwol22 at hotmail.com
More information about the Python-list
mailing list