Skip to content

Commit

Permalink
bpo-36277: Add document for pdb debug and retval commands (GH-12872)
Browse files Browse the repository at this point in the history
https://bugs.python.org/issue36277

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

Co-authored-by: Dave Nguyen <dv@dvnguyen.com>
  • Loading branch information
miss-islington and nguyendv committed Nov 21, 2019
1 parent 7efeb75 commit 97c301b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Doc/library/pdb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 97c301b

Please sign in to comment.