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 _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
