sys.excepthook

Thomas Heller thomas.heller at ion-tof.com
Tue Apr 17 09:50:24 EDT 2001


sys.excepthook, introduced in Python 2.1, finally
let me do what I always wanted: Uncaught exceptions
automatically start the debugger if you add these
lines to your sitecustomize.py:

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

Cheers,

Thomas





More information about the Python-list mailing list