Debugging question: Print out program state (Variables)

Josh Bloom joshbloom at gmail.com
Fri Oct 6 11:53:36 EDT 2006


Hello PyListers,

I have a python script that runs nightly and fetches info from various
webservers and does some processing on the data. Occasionally my script has
a problem and is unable to finish its work. I have try blocks and logging
for most of the errors that can happen.

What I would like to do is write out the state of my script when an error is
encountered. I've been looking at the traceback module and think Im on the
right track, but I haven't figured out a way to write out all of the
programs current variables. Is there a handy module that can do something
like that?

Thanks,
Josh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20061006/9f13a4ab/attachment.html>


More information about the Python-list mailing list