Skip to content

Instantly share code, notes, and snippets.

@nvictus
Created August 7, 2016 07:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nvictus/96d123bd5ddb053303889739443b0000 to your computer and use it in GitHub Desktop.
Save nvictus/96d123bd5ddb053303889739443b0000 to your computer and use it in GitHub Desktop.
Post mortem exception hook with ipdb
def set_postmortem_hook():
import sys, traceback, ipdb
def _excepthook(exc_type, value, tb):
traceback.print_exception(exc_type, value, tb)
print()
ipdb.pm()
sys.excepthook = _excepthook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment