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 9391f6c3ef)

Co-authored-by: Dave Nguyen <dv@dvnguyen.com>
This commit is contained in:
Miss Islington (bot) 2019-11-20 17:56:26 -08:00 committed by GitHub
parent ac99ea4b30
commit d5d41d3936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View 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