summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-11-21 01:56:26 (GMT)
committerGitHub <noreply@github.com>2019-11-21 01:56:26 (GMT)
commitd5d41d39366214c9628b2680fa18fb8d085bcdbc (patch)
treed2057679cdb23173cc80a35b94ca430ac82eebb2
parentac99ea4b308539dd8a25093974baf7b612c28c0c (diff)
downloadcpython-d5d41d39366214c9628b2680fa18fb8d085bcdbc.zip
cpython-d5d41d39366214c9628b2680fa18fb8d085bcdbc.tar.gz
cpython-d5d41d39366214c9628b2680fa18fb8d085bcdbc.tar.bz2
bpo-36277: Add document for pdb debug and retval commands (GH-12872)
https://bugs.python.org/issue36277 Automerge-Triggered-By: @csabella (cherry picked from commit 9391f6c3ef24f7962c534c42ccb792debdbef509) Co-authored-by: Dave Nguyen <dv@dvnguyen.com>
-rw-r--r--Doc/library/pdb.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index f26b6a8..5ee7faa 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -531,6 +531,14 @@ by the local file.
Quit from the debugger. The program being executed is aborted.
+.. pdbcommand:: debug code
+
+ Enter a recursive debugger that steps through the code
+ argument (which is an arbitrary expression or statement to be
+ executed in the current environment).
+
+.. pdbcommand:: retval
+ Print the return value for the last return of a function.
.. rubric:: Footnotes