debugging program that uses ctypes

Miki miki.tebeka at
Sun Sep 9 08:21:05 CEST 2007

Hello Marco,

> hi all, I have a python program that calls a dll through ctypes
> (py2.5). In some (reproducible)
> conditions the program crashes with an error in ctypes module.
> How can I trace down the problem? I have created a debug build of
> python but I also use pyodbc
> and dateutil libraries in my program and I don't know how to make them
> visible to python_d.exe
> Am I using the right approach?
If you are the one compiling the called module, you can add `__asm int
3` somewhere in
the code. When this is reached, the windows debugger will pop up on
the line.

Miki <miki.tebeka at>

More information about the Python-list mailing list