debugging python extensions in c

Pete Shinners pete at visionart.com
Tue Dec 5 19:34:23 CET 2000


"Oivvio Polite" <oivvio at cajal.mbb.ki.se> wrote
> We've just started writing a python extension in c.
>
> I know how to use the python debugger and I've  done some c debugging
> before.
>
> But how do I go about to debug pointerstuff and memory leaks in python
> extension.
>
> We're writing this for both windows and linux.

i've been getting along with my trusty debugger, "printf"

sorry it's not the most elegent thing, but it's been solving
my bugs here and there. you may also want to change the compile
flags and recompile python. there are a lot of internal #define
flags that can be used for finding leaked references, more error
checking, etc.







More information about the Python-list mailing list