[Python-checkins] bpo-36277: Add document for pdb debug and retval commands (GH-12872)
Miss Islington (bot)
webhook-mailer at python.org
Wed Nov 20 20:56:30 EST 2019
https://github.com/python/cpython/commit/d5d41d39366214c9628b2680fa18fb8d085bcdbc
commit: d5d41d39366214c9628b2680fa18fb8d085bcdbc
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-11-20T17:56:26-08:00
summary:
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 at dvnguyen.com>
files:
M Doc/library/pdb.rst
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index f26b6a8b553b3..5ee7faaa5c9f8 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
More information about the Python-checkins
mailing list