Message382259
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' |
|
Date |
User |
Action |
Args |
2020-12-01 15:13:18 | Romuald | set | recipients:
+ Romuald |
2020-12-01 15:13:18 | Romuald | set | messageid: <1606835598.54.0.959102851686.issue42524@roundup.psfhosted.org> |
2020-12-01 15:13:18 | Romuald | link | issue42524 messages |
2020-12-01 15:13:18 | Romuald | create | |
|