Auto debug on un-caught exception.

Oleg Broytmann phd at phd.pp.ru
Tue Oct 23 07:58:40 EDT 2001


On Tue, Oct 23, 2001 at 11:53:10AM +0000, andy.pevy at nokia.com wrote:
> 	I have seen somewhere out there in net land a method of
> automatically running the debugger when an un caught exception 
> occurs. 

def info(*args):
   import pdb
   pdb.pm()
sys.excepthook = info

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list