setting variables in pdb

Duncan Booth duncan.booth at invalid.invalid
Tue May 18 16:33:27 EDT 2010


Art <grenander at gmail.com> wrote:

> If I am in Pdb, I would like to set a temporary variable, for example:
> 
> (Pdb) r = 1
> 
> The 'r' gets interpreted as 'return' by Pdb.
> 
> Is there a Pdb instruction that guarantees the intended effect, like:
> 
> (Pdb) let r = 1

(Pdb) exec "r=1"



More information about the Python-list mailing list