Popular recipes by Bryn Keller http://code.activestate.com/recipes/users/98157/2001-03-07T10:07:34-08:00ActiveState Code RecipesGet more information from tracebacks (Python)
2001-03-07T10:07:34-08:00Bryn Kellerhttp://code.activestate.com/recipes/users/98157/http://code.activestate.com/recipes/52215-get-more-information-from-tracebacks/
<p style="color: grey">
Python
recipe 52215
by <a href="/recipes/users/98157/">Bryn Keller</a>
.
</p>
<p>The standard Python traceback module provides very useful functions to produce useful information about where and why an error occurred. Traceback objects actually contain a great deal more information than the traceback module displays, however. That information can greatly assist in detecting the cause of your error.</p>
<p>Here's an example of an extended traceback printer you might use, followed by a usage example.</p>