bpo-36277: Add document for pdb debug and retval commands (GH-12872)
![](https://secure.gravatar.com/avatar/cc7737cd64a84f1b5c61a160798e97ee.jpg?s=120&d=mm&r=g)
https://github.com/python/cpython/commit/97c301bfc5ea278c32dc5fabe425d8981ec... commit: 97c301bfc5ea278c32dc5fabe425d8981ec5d3b1 branch: 3.7 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: GitHub <noreply@github.com> date: 2019-11-20T17:56:43-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@dvnguyen.com> files: M Doc/library/pdb.rst diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index c7864e9e3f222..a52549feeca06 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -529,6 +529,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
participants (1)
-
Miss Islington (bot)