PDB (and other Python debuggers) have a simple way of viewing the value of any current variable, just by typing it in. However, sometimes I work with libraries that don\'t store
In pdb, when the function returns a ->'value' is added at the end of the line with the representation of the returned value.
->'value'
For example:
(Pdb) s --Return-- > test.py(12)do_stuff()->'f' -> return result (Pdb) q
means do_stuff() returned 'f'
do_stuff()
'f'