question about pdb assignment statements

Steve Ferg steve.ferg.bitbucket at
Mon Aug 16 17:17:20 CEST 2010

In this little script:

 import pdb
 def main():
     xm = 123

When I run this, I use pdb to step through it until I reach the point
in main() where the xm variable has been initialized, and then I try
to use pdb to reset the value of xm, and I can't.

Does anybody know why?

As I understand the documentation,
I *should* be able to do this.

 Execute the (one-line) statement in the context of the current stack

Is there something about "in the context of the current stack frame"
that I don't understand?  Or is it a bug (or a limitation) in pdb?

More information about the Python-list mailing list