[issue24140] In pdb using "until X" doesn't seem to have effect in commands
vyktor added the comment: In here: > /home/vyktor/src/error/minimal.py(1)() -> print('1') (Pdb) break 2 Breakpoint 1 at /home/vyktor/src/error/minimal.py:2 (Pdb) commands 1 (com) print('Triggered bp 1') (com) until 4 (com) end (Pdb) cont 1 Triggered bp 1 > /home/vyktor/src/error/minimal.py(2)() -> print('2') (Pdb) until has no effect. Expected behavior would be executing print 2 and 3. -- Added file: http://bugs.python.org/file39327/minimal.py ___ Python tracker <http://bugs.python.org/issue24140> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24140] In pdb using "until X" doesn't seem to have effect in commands
vyktor added the comment: Adding test.py, but according to docs https://docs.python.org/3.2/library/pdb.html#pdbcommand-commands "Specifying any command resuming execution (currently continue, step, next, return, jump, quit and their abbreviations) terminates the command list (as if that command was immediately followed by end). " This is probably expected behavior. -- Added file: http://bugs.python.org/file39326/test.py ___ Python tracker <http://bugs.python.org/issue24140> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24140] In pdb using "until X" doesn't seem to have effect in commands
New submission from vyktor: When using pdb -m pdb test.py and entering: (Pdb) b A.f Breakpoint 1 at d:\tmp\stack\test.py:8 (Pdb) commands 2 (com) disable 2 (com) until 13 (com) end Until doesn't seem to have any effect. When statement is executed manually, everything works as expected (execution halts before implicit return from function). -- components: Library (Lib) messages: 242711 nosy: vyktor priority: normal severity: normal status: open title: In pdb using "until X" doesn't seem to have effect in commands type: behavior versions: Python 3.2 ___ Python tracker <http://bugs.python.org/issue24140> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com