d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame).
(self, arg)
| 962 | do_u = do_up |
| 963 | |
| 964 | def do_down(self, arg): |
| 965 | """d(own) [count] |
| 966 | Move the current frame count (default one) levels down in the |
| 967 | stack trace (to a newer frame). |
| 968 | """ |
| 969 | if self.curindex + 1 == len(self.stack): |
| 970 | self.error('Newest frame') |
| 971 | return |
| 972 | try: |
| 973 | count = int(arg or 1) |
| 974 | except ValueError: |
| 975 | self.error('Invalid frame count (%s)' % arg) |
| 976 | return |
| 977 | if count < 0: |
| 978 | newframe = len(self.stack) - 1 |
| 979 | else: |
| 980 | newframe = min(len(self.stack) - 1, self.curindex + count) |
| 981 | self._select_frame(newframe) |
| 982 | do_d = do_down |
| 983 | |
| 984 | def do_until(self, arg): |
nothing calls this directly
no test coverage detected