Detailed traceback

Echo oshecho at gmail.com
Mon Sep 12 16:56:34 EDT 2005


I have been working on handling unhanded exceptions and making a
detailed print out of the traceback after the exception. I found that
traceback.extract_tb worked nice and was quite simple.

During my searching around I found out that it might be possible to
get the variables and their respective values for each frame. I found
this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52215 to
be extremely helpful.

My only problem with that is that there appears to be no way to get
the line of code for a frame.

So I was wondering if it was possible to get the line of code for a frame.

-- 
-Echo



More information about the Python-list mailing list