Is there any way to make a python program start an interactive debugger, like what import pdb; pdb.set_trace() instead of actually throwing an exception?
import pdb; pdb.set_trace()
I
This question is quite old, so this is mainly for future me
try: ... except: import traceback, pdb, sys traceback.print_exc() print '' pdb.post_mortem() sys.exit(1)