Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,16 +332,19 @@ by the local file.
(com) end
(Pdb)

To remove all commands from a breakpoint, type commands and follow it
To remove all commands from a breakpoint, type ``commands`` and follow it
immediately with ``end``; that is, give no commands.

With no *bpnumber* argument, commands refers to the last breakpoint set.
With no *bpnumber* argument, ``commands`` refers to the last breakpoint set.

You can use breakpoint commands to start your program up again. Simply use
the continue command, or step, or any other command that resumes execution.
the :pdbcmd:`continue` command, or :pdbcmd:`step`,
or any other command that resumes execution.

Specifying any command resuming execution (currently continue, step, next,
return, jump, quit and their abbreviations) terminates the command list (as if
Specifying any command resuming execution
(currently :pdbcmd:`continue`, :pdbcmd:`step`, :pdbcmd:`next`,
:pdbcmd:`return`, :pdbcmd:`jump`, :pdbcmd:`quit` and their abbreviations)
terminates the command :pdbcmd:`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
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Add references to some commands in the documentation of Pdb. Patch by
Stéphane Wirtel