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.

Author Romuald
Recipients Romuald
Date 2020-12-01.15:13:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606835598.54.0.959102851686.issue42524@roundup.psfhosted.org>
In-reply-to
Content
When using the pdb module, there is currently no way to easy access the current return value of the stack

This return value is accessed by the 'retval command'

I propose using the currently unused argument to allow storing the return value in the local variables, accessible via the debugger

For example:


    def foo():
        debugger()
        return ComplexObject()

    def bar():
        return foo()

(pdb) retval
<ComplexObject instance at 0x1234>
(pdb) retval zz
(pdb) zz.attribute
'some value'
History
Date User Action Args
2020-12-01 15:13:18Romualdsetrecipients: + Romuald
2020-12-01 15:13:18Romualdsetmessageid: <1606835598.54.0.959102851686.issue42524@roundup.psfhosted.org>
2020-12-01 15:13:18Romualdlinkissue42524 messages
2020-12-01 15:13:18Romualdcreate