[Tutor] Python debugger

Michael Bernhard Arp Sørensen michael at arpsorensen.dk
Fri Jan 9 09:27:19 CET 2009

Hi there.

I've just started using the python debugger and I wonder how I could have
lived without it earlier.

I just wonder if there is a smarter way to show what all the variables
contain in any given point in the debugger. I'm using this approach:

import sys
f = sys._getframe()
p f.f_locals.items()

It's not exacly pretty in its output, but it's better than nothing. Can this
be done in a smarter way?


Kind regards

Michael B. Arp Sørensen
Programmer / BOFH

"Ride out and meet them."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090109/e0db9df8/attachment.htm>

More information about the Tutor mailing list