d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame).
(self, arg)
| 1020 | do_u = do_up |
| 1021 | |
| 1022 | def do_down(self, arg): |
| 1023 | """d(own) [count] |
| 1024 | Move the current frame count (default one) levels down in the |
| 1025 | stack trace (to a newer frame). |
| 1026 | """ |
| 1027 | if self.curindex + 1 == len(self.stack): |
| 1028 | self.error('Newest frame') |
| 1029 | return |
| 1030 | try: |
| 1031 | count = int(arg or 1) |
| 1032 | except ValueError: |
| 1033 | self.error('Invalid frame count (%s)' % arg) |
| 1034 | return |
| 1035 | if count < 0: |
| 1036 | newframe = len(self.stack) - 1 |
| 1037 | else: |
| 1038 | newframe = min(len(self.stack) - 1, self.curindex + count) |
| 1039 | self._select_frame(newframe) |
| 1040 | do_d = do_down |
| 1041 | |
| 1042 | def do_until(self, arg): |
nothing calls this directly
no test coverage detected