Created
August 2, 2013 19:38
-
-
Save ambivalentno/6142789 to your computer and use it in GitHub Desktop.
sample to look at post-mortem pdb
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
def first(): | |
jj = 'qqq' | |
jj = second() | |
print jj | |
def second(): | |
jj = 'www' | |
1/0 | |
return jj | |
try: | |
first() | |
except Exception, e: | |
import sys | |
import pdb | |
pdb.post_mortem(sys.exc_info()[2]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment