Skip to content

Instantly share code, notes, and snippets.

@ambivalentno
Created August 2, 2013 19:38
Show Gist options
  • Save ambivalentno/6142789 to your computer and use it in GitHub Desktop.
Save ambivalentno/6142789 to your computer and use it in GitHub Desktop.
sample to look at post-mortem pdb
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