Debugging question: Print out program state (Variables)

Gabriel Genellina gagsl-py at
Sat Oct 7 03:53:15 CEST 2006

At Friday 6/10/2006 12:53, Josh Bloom wrote:

>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?

Yes, look at the cgitb module (the name is a bit misleading...)

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!

More information about the Python-list mailing list