Created
September 10, 2015 05:16
-
-
Save tokibito/80ebd4bee4b5bca2eb26 to your computer and use it in GitHub Desktop.
pdb.post_mortem on Exception
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import sys, pdb, traceback | |
spam() | |
except: | |
type, value, tb = sys.exc_info() | |
traceback.print_exc() | |
pdb.post_mortem(tb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment