debugging a c module?

Will Ware wware at alum.mit.edu
Thu Sep 6 01:47:59 CEST 2001


Agent Drek wrote:

> ...I'm pretty sure
> that this is because I've screwed up a reference count somewhere in the
> module. How do I go about debugging this? I'm using Python-2.1.1...
> Recompile python and the module with debugging? gdb?

This is a trick I used once with Python 1.5.2. You could give it a try.
You won't need gdb, but it will require recompiling Python with
Py_DEBUG on, which enables some C macros in the code.


http://groups.google.com/groups?selm=G18tKx.IJC%40world.std.com




More information about the Python-list mailing list