Bug report
Bug description:
- create a
for-loop.py
for i in range(10):
breakpoint()
print(i)
-
run python for-loop.py, entering the pdb interface
-
insert a line to for-loop.py after breakpoint()
for i in range(10):
breakpoint()
print("This is an inserted line.")
print(i)
-
run c in pdb and the inserted line will be shown as current line indicated by ->, but the actual current line to be executed is print(i).
-
run c again. The print(i), instead of the inserted line, will be executed.
CPython versions tested on:
3.12
Operating systems tested on:
Linux
Bug report
Bug description:
for-loop.pyrun
python for-loop.py, entering the pdb interfaceinsert a line to
for-loop.pyafterbreakpoint()run
cin pdb and the inserted line will be shown as current line indicated by->, but the actual current line to be executed isprint(i).run
cagain. Theprint(i), instead of the inserted line, will be executed.CPython versions tested on:
3.12
Operating systems tested on:
Linux