This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: remove or make work pdb retval and rv
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7, Python 2.6
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, rocky
Priority: normal Keywords:

Created on 2009-02-22 02:34 by rocky, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg82591 - (view) Author: rocky bernstein (rocky) Date: 2009-02-22 02:34
Remove pdb's undocumented"retval"/"rv" debugger commands. 

It is conceivable this may have once worked on a version of Python long
ago, but not in recent releases. If it's of interest to make this work,
one approach would be to use the arg parameter passed into
trace_dispatch when the event type is "return".
msg85520 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2009-04-05 15:28
It seems to me that retval works quite well, provided you call it in the
frame where the return occurs:

> /home/gbr/devel/python/x.py(2)f()
-> return 123
(Pdb) step
--Return--
> /home/gbr/devel/python/x.py(2)f()->123
-> return 123
(Pdb) retval
123
(Pdb)
History
Date User Action Args
2022-04-11 14:56:46adminsetgithub: 49593
2009-04-05 15:28:57georg.brandlsetstatus: open -> closed

nosy: + georg.brandl
messages: + msg85520

resolution: works for me
2009-02-22 02:34:04rockycreate