Created
December 9, 2014 17:55
-
-
Save ironpythonbot/55cda3c7b1439104d16a to your computer and use it in GitHub Desktop.
CodePlex Issue #31547 Plain Text Attachments
This file contains 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
import sys | |
def tf(frame, event, arg): | |
if event == 'exception': | |
print arg[2].tb_lineno | |
return tf | |
sys.settrace(tf) | |
def f(): | |
crash | |
try: | |
f() | |
except: | |
import sys | |
type, value, tb = sys.exc_info() | |
print tb.tb_lineno | |
pass | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment