"Néstor C." <[email protected]> writes:

> Hello.
>
> Is it posible to change the value of one variable while debuging the code
> like pdb?
>
> if yes, how can i do it?

Use "!" to go to the shell, then "variable = value".

Note that this often doesn't quite work, because this only modifies the
value in Python's locals/globals dict for that frame. If you look at
Python's bytecode, you'll realize that sometimes your variables are also
on Python's internal stack--in which case pudb won't be able to modify
them (or, rather, I couldn't figure out how).

HTH,
Andreas

Attachment: pgpRDdYL8cpAj.pgp
Description: PGP signature

_______________________________________________
Pudb mailing list
[email protected]
http://lists.tiker.net/listinfo/pudb

Reply via email to