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)
| 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 |
nothing calls this directly
no test coverage detected