This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pdb continue + breakpoint
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.8
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: philiprowlands
Priority: normal Keywords:

Created on 2018-06-15 15:20 by philiprowlands, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg319622 - (view) Author: Philip Rowlands (philiprowlands) Date: 2018-06-15 15:20
Please extend pdb's continue to support an optional argument, identical to break.

When debugging I frequently want to quickly run to a certain line number then break. Rather than break / continue / clear (or tbreak / continue), it would be handy to type
(Pdb) cont 99

to run to line 99 as a one-off breakpoint.
msg320280 - (view) Author: Philip Rowlands (philiprowlands) Date: 2018-06-22 21:48
Considering the semantics a little more, "cont 99" could be equivalent to

tbreak 99
cont

perhaps with an implicit clear on SIGINT.

This is similar in the simple case to "until 99", except "until" stops on frame boundaries, refuses to go backwards (e.g. in a loop), and doesn't take the full range of filename / lineno / function / condition.
History
Date User Action Args
2022-04-11 14:59:01adminsetgithub: 78051
2018-06-22 21:48:14philiprowlandssetmessages: + msg320280
2018-06-15 19:05:55pablogsalsetcomponents: + Library (Lib)
versions: + Python 3.8
2018-06-15 15:20:11philiprowlandscreate