Debugging C++ Python Extension Modules

9 views
Skip to first unread message

Bernhard Maeder

unread,
Mar 10, 2009, 11:49:29 AM3/10/09
to zerobugs
Hello all

I'm trying to debug my python extension modules with Zero-Bugs but
can't seem to get it to work. First my setup:

I'm executing my python unit test file with something like:

zero python test_somemodule.py

which, in turn, imports and uses my extension module:

from _somemodule import *
....

(_somemodule.so is the extension file).

I am able to produce an exception or signal which is then correctly
shown in the debugger. But I cannot set a breakpoint beforehand,
since, when starting up python, the extension is not yet loaded.

Also, trying to restart the program fails, I always need to quit the
debugger and then try again.

Am I doing something wrong here or is this just impossible with Zero-
Bugs?

Thanks a million!

Bernhard
Reply all
Reply to author
Forward
0 new messages