New submission from Romuald Brunet <romuald.bru...@gmail.com>:
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' ---------- components: Library (Lib) messages: 382259 nosy: Romuald priority: normal severity: normal status: open title: pdb access to return value type: enhancement versions: Python 3.10 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue42524> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com