]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-36277: Add document for pdb debug and retval commands (GH-12872)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 21 Nov 2019 01:56:26 +0000 (17:56 -0800)
committerGitHub <noreply@github.com>
Thu, 21 Nov 2019 01:56:26 +0000 (17:56 -0800)
https://bugs.python.org/issue36277

Automerge-Triggered-By: @csabella
(cherry picked from commit 9391f6c3ef24f7962c534c42ccb792debdbef509)

Co-authored-by: Dave Nguyen <dv@dvnguyen.com>
Doc/library/pdb.rst

index f26b6a8b553b3661facfc0792e3c89d56ac4eeb3..5ee7faaa5c9f8dc440007925d4ab29d3c07036d5 100644 (file)
@@ -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