Skip to content

Instantly share code, notes, and snippets.

View notsobad's full-sized avatar

notsobad notsobad

View GitHub Profile
@notsobad
notsobad / autopdb.py
Last active August 29, 2015 14:08 — forked from rctay/sitecustomize.py
auto run pdb when there is a exception throw.
'''
original: http://code.activestate.com/recipes/65287/
Put this in python module dir, on mac: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
Run your script this way:
>> python -m autopdb /path/script.py
'''