[issue20853] pdb "args" crashes when an arg is not printable

Jurjen N.E. Bos report at bugs.python.org
Fri Mar 14 22:51:15 CET 2014


Jurjen N.E. Bos added the comment:

Maybe we could use Pdb._getval_except(arg, frame=None) in the routine do_args.
If I understand the code, do_args does quite some work to get the value of name in the context of the current frame, maybe just calling
self._getval_except(name, frame=self.curframe)
plus or minus some code would do the job?
I guess the code would actually become shorter...
I'll try to figure it out.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20853>
_______________________________________


More information about the Python-bugs-list mailing list