This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Evaluate the *expression* (given as a string or a code object) under debugger
control. When :func:`runeval` returns, it returns the value of the
expression. Otherwise this function is similar to :func:`run`.
*expression*. Otherwise this function is similar to :func:`run`.
.. function:: runcall(function, *args, **kwds)
Expand Down
Expand Up
@@ -178,7 +178,7 @@ access further features, you have to do this yourself:
that matches one of these patterns. [1]_
By default, Pdb sets a handler for the SIGINT signal (which is sent when the
user presses :kbd:`Ctrl-C` on the console) when you give a ``continue`` command.
user presses :kbd:`Ctrl-C` on the console) when you give a :pdbcmd:`continue` command.
This allows you to break into the debugger again by pressing :kbd:`Ctrl-C`. If you
want Pdb not to touch the SIGINT handler, set *nosigint* to true.
Expand Down
Expand Up
@@ -328,9 +328,9 @@ can be overridden by the local file.
.. pdbcommand:: ignore bpnumber [count]
Set the ignore count for the given breakpoint number. If count is omitted,
Set the ignore count for the given breakpoint number. If *count* is omitted,
the ignore count is set to 0. A breakpoint becomes active when the ignore
count is zero. When non-zero, the count is decremented each time the
count is zero. When non-zero, the *count* is decremented each time the
breakpoint is reached and the breakpoint is not disabled and any associated
condition evaluates to true.
Expand Down
Expand Up
@@ -369,7 +369,7 @@ can be overridden by the local file.
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
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.
Expand All
@@ -392,8 +392,8 @@ can be overridden by the local file.
Without argument, continue execution until the line with a number greater
than the current one is reached.
With a line number, continue execution until a line with a number greater or
equal to that is reached. In both cases, also stop when the current frame
With *lineno*, continue execution until a line with a number greater or
equal to *lineno* is reached. In both cases, also stop when the current frame
returns.
.. versionchanged:: 3.2
Expand Down
Expand Up
@@ -446,7 +446,7 @@ can be overridden by the local file.
.. pdbcommand:: p expression
Evaluate the *expression* in the current context and print its value.
Evaluate *expression* in the current context and print its value.
.. note::
Expand All
@@ -456,32 +456,32 @@ can be overridden by the local file.
.. pdbcommand:: pp expression
Like the :pdbcmd:`p` command, except the value of the expression is
Like the :pdbcmd:`p` command, except the value of *expression* is
pretty-printed using the :mod:`pprint` module.
.. pdbcommand:: whatis expression
Print the type of the *expression*.
Print the type of *expression*.
.. pdbcommand:: source expression
Try to get source code for the given object and display it.
Try to get source code of *expression* and display it.
.. versionadded:: 3.2
.. pdbcommand:: display [expression]
Display the value of the expression if it changed, each time execution stops
Display the value of *expression* if it changed, each time execution stops
in the current frame.
Without expression, list all display expressions for the current frame.
Without *expression*, list all display expressions for the current frame.
.. versionadded:: 3.2
.. pdbcommand:: undisplay [expression]
Do not display the expression any more in the current frame. Without
expression, clear all display expressions for the current frame.
Do not display *expression* anymore in the current frame. Without
*expression*, clear all display expressions for the current frame.
.. versionadded:: 3.2
Expand All
@@ -497,10 +497,10 @@ can be overridden by the local file.
.. pdbcommand:: alias [name [command]]
Create an alias called *name* that executes *command*. The command must
Create an alias called *name* that executes *command*. The *command* must
*not* be enclosed in quotes. Replaceable parameters can be indicated by
``%1``, ``%2``, and so on, while ``%*`` is replaced by all the parameters.
If no command is given, the current alias for *name* is shown. If no
If *command* is omitted, the current alias for *name* is shown. If no
arguments are given, all aliases are listed.
Aliases may be nested and can contain anything that can be legally typed at
Expand All
@@ -519,7 +519,7 @@ can be overridden by the local file.
.. pdbcommand:: unalias name
Delete the specified alias.
Delete the specified alias *name*.
.. pdbcommand:: ! statement
Expand All
@@ -535,7 +535,7 @@ can be overridden by the local file.
.. pdbcommand:: run [args ...]
restart [args ...]
Restart the debugged Python program. If an argument is supplied, it is split
Restart the debugged Python program. If *args* is supplied, it is split
with :mod:`shlex` and the result is used as the new :data:`sys.argv`.
History, breakpoints, actions and debugger options are preserved.
:pdbcmd:`restart` is an alias for :pdbcmd:`run`.
Expand All
@@ -546,8 +546,8 @@ can be overridden by the local file.
.. pdbcommand:: debug code
Enter a recursive debugger that steps through the code
argument (which is an arbitrary expression or statement to be
Enter a recursive debugger that steps through *code*
(which is an arbitrary expression or statement to be
executed in the current environment).
.. pdbcommand:: retval
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[3.11] Update pdb docs for arguments (GH-102965) #103038
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
[3.11] Update pdb docs for arguments (GH-102965) #103038
Filter by extension
Viewed files
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing