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