From: Dave Nguyen Date: Thu, 21 Nov 2019 01:49:15 +0000 (-0600) Subject: bpo-36277: Add document for pdb debug and retval commands (GH-12872) X-Git-Tag: v3.9.0a2~154 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9391f6c3ef24f7962c534c42ccb792debdbef509;p=thirdparty%2FPython%2Fcpython.git bpo-36277: Add document for pdb debug and retval commands (GH-12872) https://bugs.python.org/issue36277 Automerge-Triggered-By: @csabella --- diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 0b9a687b14e3..606e8e534577 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