[pygtk] pygtk fatal exceptions

Guillaume Bouchard guillaume.bouchard at insa-lyon.fr
Fri May 29 21:39:12 WST 2009


On Fri, May 29, 2009 at 02:43:06PM +0200, Alessandro Dentella wrote:
> > 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

This really solve my problem, but :

1) It forces me to learn ipython (ok, I'm a geek, I'll do it)
2) I need to have ipython installed on my computer, it's not that easy.

Thank for you help, I'm still waiting for a *pure* python/pdb solution,
but I'm quite happy now.

PS: I put the list and you as receivers because perhaps my thanks does
not interests others, but the quotation of your answer is quite
interesting ;)

-- 
Guillaume


More information about the pygtk mailing list