Skip to content

Commit d5d41d3

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 ac99ea4 commit d5d41d3

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
@@ -531,6 +531,14 @@ by the local file.
531531

532532
Quit from the debugger. The program being executed is aborted.
533533

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

535543
.. rubric:: Footnotes
536544

0 commit comments

Comments
 (0)