fperez.net at gmail.com
Fri Aug 19 18:46:34 CEST 2005
> I'm just beginning with tracebacks, building off of what I see in
> asyncore's compact_traceback code, in order to hopefully store all the
> values from the location in which the exception occured.
> I'm actually trying to make this into a python bug report system for my
> current project, and am seeking advice on how to use sys.exc_info()
> better (the traceback element)
> Does anyone have any advice on how I'd preform a traceback-based
> bugreport-like system? The more I work on this, the more I'm confusing
> myself. :\
You may want to look at ipython's CrashHandler system:
It does all of what you've described in your post automatically. Some of it is
ipython-specific, but it should be easy enough to tweake it for your needs.
For download links (the above is an SVN source browsing link):
At some point I should really abstract this out, there seems to be a need for
it out there.
More information about the Python-list