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

Automerge-Triggered-By: @csabella
Doc/library/pdb.rst

index 0b9a687b14e3a30ed9c1868de78a910617569ef0..606e8e534577067805916d5ee5fcad4ce3876fd8 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