Detailed traceback

E

Echo

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,157
Latest member
MercedesE4
Top