Skip to content

Commit c50b039

Browse files
Update docs
Co-authored-by: Irit Katriel <[email protected]>
1 parent 78e2e66 commit c50b039

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Doc/library/pdb.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ access further features, you have to do this yourself:
219219

220220
The *mode* argument specifies how the debugger was invoked.
221221
It impacts the workings of some debugger commands.
222-
Valid values are ``'inline'`` (when called from the breakpoint() builtin),
223-
``'cli'`` (when called from a command line invocation)
222+
Valid values are ``'inline'`` (used by the breakpoint() builtin),
223+
``'cli'`` (used by the command line invocation)
224224
or ``None`` (for backwards compatible behaviour, as before the *mode*
225225
argument was added).
226226

@@ -686,8 +686,8 @@ can be overridden by the local file.
686686
:pdbcmd:`restart` is an alias for :pdbcmd:`run`.
687687

688688
.. versionchanged:: 3.14
689-
:pdbcmd:`run` and :pdbcmd:`restart` commands are not allowed when the
690-
debugger is invoked from an inline breakpoint.
689+
:pdbcmd:`run` and :pdbcmd:`restart` commands are disabled when the
690+
debugger is invoked in ``'inline'`` mode.
691691

692692
.. pdbcommand:: q(uit)
693693

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1613,7 +1613,7 @@ def do_run(self, arg):
16131613
are preserved. "restart" is an alias for "run".
16141614
"""
16151615
if self.mode == 'inline':
1616-
self.error('run/restart command is disabled in inline breakpoints.\n'
1616+
self.error('run/restart command is disabled when pdb is running in inline mode.\n'
16171617
'Use the command line interface to enable restarting your program\n'
16181618
'e.g. "python -m pdb myscript.py"')
16191619
return

0 commit comments

Comments
 (0)