Skip to content

Commit 97c301b

Browse files
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 9391f6c) Co-authored-by: Dave Nguyen <[email protected]>
1 parent 7efeb75 commit 97c301b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/pdb.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,14 @@ by the local file.
529529

530530
Quit from the debugger. The program being executed is aborted.
531531

532+
.. pdbcommand:: debug code
533+
534+
Enter a recursive debugger that steps through the code
535+
argument (which is an arbitrary expression or statement to be
536+
executed in the current environment).
537+
538+
.. pdbcommand:: retval
539+
Print the return value for the last return of a function.
532540

533541
.. rubric:: Footnotes
534542

0 commit comments

Comments
 (0)