[pygtk] pygtk fatal exceptions
Alessandro Dentella
sandro at e-den.it
Fri May 29 20:43:06 WST 2009
On Fri, May 29, 2009 at 02:22:12PM +0200, Guillaume Bouchard wrote:
> Hello,
>
> I want to debug a pygtk program with PDB (the internal python debuger)
> because the program raise an exception.
>
> My aim is to be able to directly "jump" to the exception with "python -m
> pdb myprogram.py" and then '(c)ontinue' and wait for the exception to be
> catch by pdb.
I'm not really following you, but I debug gtk program using 'ipython
-gthread'. When you hit an exception you are jumped into a pdb interpreter
run from ipython (i.e. you have completion available that you dont have in
a normal pdb session). Try:
ipython -gthread -pdb -- your_script.py
I think and hope this should be (more) than what you where looking for.
*:-)
--
Sandro Dentella *:-)
http://sqlkit.argolinux.org SQLkit home page - PyGTK/python/sqlalchemy
More information about the pygtk
mailing list