pdb with threads & PyEval_CallObject
immanuel at yours.com
Tue Mar 20 15:34:25 CET 2001
I have a Linux multi-threaded application which both extend & embed Python.
The threads are created in C++, and the entry point of the application is
Python; one of these threads, however, have a PyEval_CallObject in it. Since
to acquire the interpreter lock before calling PyEval_CallObject, this means
is unable to break at the callback function. Does anyone know how to get
The alternative to debugging this is, of course, good old prints.
"main" python thread:
# callback func
app.start() # threads created
tstate = PyThreadState_New(interp)
More information about the Python-list