diff options
author | Tian Gao <gaogaotiantian@hotmail.com> | 2024-09-29 23:46:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-29 23:46:16 (GMT) |
commit | b5774603a0c877f19b33fb922e2fb967b1d50329 (patch) | |
tree | 34cb1de768ff60269307f9cc8c28db4dc5f3c7c7 /Doc/library | |
parent | 4b83c03ce964af7fb204144db9adaa524c113a82 (diff) | |
download | cpython-b5774603a0c877f19b33fb922e2fb967b1d50329.zip cpython-b5774603a0c877f19b33fb922e2fb967b1d50329.tar.gz cpython-b5774603a0c877f19b33fb922e2fb967b1d50329.tar.bz2 |
gh-124400: Use the normal command path for breakpoint commands (#124401)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/pdb.rst | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 1682eb0..6c099b2 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -439,17 +439,20 @@ can be overridden by the local file. Specifying any command resuming execution (currently :pdbcmd:`continue`, :pdbcmd:`step`, :pdbcmd:`next`, - :pdbcmd:`return`, :pdbcmd:`jump`, :pdbcmd:`quit` and their abbreviations) + :pdbcmd:`return`, :pdbcmd:`until`, :pdbcmd:`jump`, :pdbcmd:`quit` and their abbreviations) terminates the command list (as if that command was immediately followed by end). This is because any time you resume execution (even with a simple next or step), you may encounter another breakpoint—which could have its own command list, leading to ambiguities about which list to execute. - If you use the ``silent`` command in the command list, the usual message about - stopping at a breakpoint is not printed. This may be desirable for breakpoints - that are to print a specific message and then continue. If none of the other - commands print anything, you see no sign that the breakpoint was reached. + If the list of commands contains the ``silent`` command, or a command that + resumes execution, then the breakpoint message containing information about + the frame is not displayed. + + .. versionchanged:: 3.14 + Frame information will not be displayed if a command that resumes execution + is present in the command list. .. pdbcommand:: s(tep) |