How to debug PYGTK program

Posted by Guillaum on Stack Overflow See other posts from Stack Overflow or by Guillaum
Published on 2009-05-27T16:17:48Z Indexed on 2010/06/02 11:33 UTC
Read the original article Hit count: 260

Filed under:
|
|
|

When python raise an exception in the middle of a pygtk signal handling callback, the exception is catched by the gtk main loop, its value printed and the main loop just continue, ignoring it.

If you want to debug, with something like pdb (python -m pdb myscript.py), you want that when the exception occure PDB jump on it and you can start debuging. Because of that it's not possible.

How can i debug pygtk program then ?

© Stack Overflow or respective owner

Related posts about python

Related posts about debug