MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / do_display

Method do_display

tools/python-3.11.9-amd64/Lib/pdb.py:1428–1443  ·  view source on GitHub ↗

display [expression] Display the value of the expression if it changed, each time execution stops in the current frame. Without expression, list all display expressions for the current frame.

(self, arg)

Source from the content-addressed store, hash-verified

1426 complete_whatis = _complete_expression
1427
1428 def do_display(self, arg):
1429 """display [expression]
1430
1431 Display the value of the expression if it changed, each time execution
1432 stops in the current frame.
1433
1434 Without expression, list all display expressions for the current frame.
1435 """
1436 if not arg:
1437 self.message('Currently displaying:')
1438 for key, val in self.displaying.get(self.curframe, {}).items():
1439 self.message('%s: %s' % (key, self._safe_repr(val, key)))
1440 else:
1441 val = self._getval_except(arg)
1442 self.displaying.setdefault(self.curframe, {})[arg] = val
1443 self.message('display %s: %s' % (arg, self._safe_repr(val, arg)))
1444
1445 complete_display = _complete_expression
1446

Callers

nothing calls this directly

Calls 6

messageMethod · 0.95
_safe_reprMethod · 0.95
_getval_exceptMethod · 0.95
itemsMethod · 0.45
getMethod · 0.45
setdefaultMethod · 0.45

Tested by

no test coverage detected