diff options
author | Dave Nguyen <dv@dvnguyen.com> | 2019-11-21 01:49:15 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-11-21 01:49:15 (GMT) |
commit | 9391f6c3ef24f7962c534c42ccb792debdbef509 (patch) | |
tree | db721406c518170252e4515822924eedaaa7b54f /Doc/library/pdb.rst | |
parent | 6db2fb7c300ca79d5585f2ae524ff4ca2707a7b6 (diff) | |
download | cpython-9391f6c3ef24f7962c534c42ccb792debdbef509.zip cpython-9391f6c3ef24f7962c534c42ccb792debdbef509.tar.gz cpython-9391f6c3ef24f7962c534c42ccb792debdbef509.tar.bz2 |
bpo-36277: Add document for pdb debug and retval commands (GH-12872)
https://bugs.python.org/issue36277
Automerge-Triggered-By: @csabella
Diffstat (limited to 'Doc/library/pdb.rst')
-rw-r--r-- | Doc/library/pdb.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 0b9a687..606e8e5 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -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 |