Skip to content

Commit 37a16bb

Browse files
committed
update err msg and doc
1 parent b309dd3 commit 37a16bb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/library/pdb.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,8 @@ can be overridden by the local file.
520520
To remove all commands from a breakpoint, type ``commands`` and follow it
521521
immediately with ``end``; that is, give no commands.
522522

523-
With no *bpnumber* argument, ``commands`` refers to the last breakpoint set.
523+
With no *bpnumber* argument, ``commands`` refers to the most recently set
524+
breakpoint that still exists.
524525

525526
You can use breakpoint commands to start your program up again. Simply use
526527
the :pdbcmd:`continue` command, or :pdbcmd:`step`,

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1321,7 +1321,7 @@ def do_commands(self, arg):
13211321
bnum = bp.number
13221322
break
13231323
else:
1324-
self.error('no breakpoints set')
1324+
self.error('cannot set commands: no existing breakpoint')
13251325
return
13261326
else:
13271327
try:

0 commit comments

Comments
 (0)