[issue5215] change value of local variable in debug

2019-04-23 Thread daniel hahler
daniel hahler added the comment: This works however (Python 3.7), but is just buggy in pdbpp (another project). -- ___ Python tracker ___

[issue5215] change value of local variable in debug

2019-04-23 Thread daniel hahler
daniel hahler added the comment: @Andrei That is something different, caused by "y" only being defined later. But it would be nice if it would work. Should be a separate/new issue though. -- nosy: +blueyed ___ Python tracker

[issue5215] change value of local variable in debug

2016-12-29 Thread Андрей Бодров
Андрей Бодров added the comment: I still can reproduce this bug, is that intended behavior? 1 def func(): 2 import pdb; pdb.set_trace() 3 x = 0 4 y = 0 5 z = 0 6 7 if __name__ == "__main__": 8 func() > /test.py(3)func() -> x = 0 (Pdb) n

[issue5215] change value of local variable in debug

2010-08-18 Thread Markus Pröller
Markus Pröller mproel...@googlemail.com added the comment: Hello, I changed pdb.py to the file I added in the attachment (I just used the given patch pdb_cache_f_locals.patch) Then I created the following file: import pdb def function_1(number): stack_1 = number function_2(stack_1)

[issue5215] change value of local variable in debug

2010-08-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Ah, the patch is buggy; it was corrected with r71019 which indeed fixes up and down. You could try to apply this change to your local copy. Also consider upgrading to 2.7, where everything works as expected... --

[issue5215] change value of local variable in debug

2010-08-18 Thread Markus Pröller
Markus Pröller mproel...@googlemail.com added the comment: Okay, thanks for giving me the correct patch, but I still face the following problem (with the same code snippet): c:\tst_pdb.py(14)function_3() - print stack_3 (Pdb) l 9 function_3(stack_2) 10 11 def

[issue5215] change value of local variable in debug

2010-08-18 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Right, this last problem still exists with 2.7 or 3.1. Please open a new tracker item for it, and let's close this one. -- ___ Python tracker rep...@bugs.python.org

[issue5215] change value of local variable in debug

2010-08-17 Thread Markus Pröller
Markus Pröller mproel...@googlemail.com added the comment: Hello, I have tested this patch since a while. In the meantime I have switched to Python 2.6.5, but the problem that I described above is still there. Another problem that brought the patch is, that when I move a frame up in the

[issue5215] change value of local variable in debug

2010-08-17 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In the meantime I have switched to Python 2.6.5, but the problem that I described above is still there. The fix was made for 2.7, and not backported to 2.6. Another problem that brought the patch is, that when I move a frame up in

[issue5215] change value of local variable in debug

2009-04-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed in r71006. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5215 ___

[issue5215] change value of local variable in debug

2009-04-01 Thread Maru Newby
Maru Newby mne...@thesprawl.net added the comment: Modifications to the f_locals dict are only saved at the end of traceback, and each traceback function was using the f_locals accessor that returns the dict state as of the start of traceback. The provided patch caches f_locals on setup and

[issue5215] change value of local variable in debug

2009-02-12 Thread mproeller
mproeller mproel...@googlemail.com added the comment: This is the pdb session at the tracepoint in line 4 in the function func () So I did the following first: c:\test.py(5)func() - a = b + 2 (Pdb) p b 13 (Pdb) !b=5 (Pdb) p b 13 (Pdb) n c:\test.py(6)func() - print a (Pdb) n 15 I tried to

[issue5215] change value of local variable in debug

2009-02-11 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Could you describe the problem in more detail please? I've having trouble understanding you description. For example, you could you paste the pdb session you used and explain what you expected? -- nosy: +benjamin.peterson

[issue5215] change value of local variable in debug

2009-02-10 Thread mproeller
New submission from mproeller mproel...@googlemail.com: The following code produces problems: import pdb def func(): b = 13 pdb.set_trace() a = b + 2 print a func() If I change the value of b (e.g. to 3) everything works fine (print a = displays 5) but if I want