This also doesn't work with the IPython shell. I actually quite often would not want this to happen, because I play around with things in the shell, but I want it to be reset once I figure out what I was trying to figure out and go back to debugging.
Aaron Meurer On Fri, Aug 2, 2013 at 8:15 AM, Andreas Kloeckner <[email protected]> wrote: > "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 > > _______________________________________________ > Pudb mailing list > [email protected] > http://lists.tiker.net/listinfo/pudb > _______________________________________________ Pudb mailing list [email protected] http://lists.tiker.net/listinfo/pudb
