d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame).
(self, arg)
| 1833 | do_u = do_up |
| 1834 | |
| 1835 | def do_down(self, arg): |
| 1836 | """d(own) [count] |
| 1837 | |
| 1838 | Move the current frame count (default one) levels down in the |
| 1839 | stack trace (to a newer frame). |
| 1840 | """ |
| 1841 | if self.curindex + 1 == len(self.stack): |
| 1842 | self.error('Newest frame') |
| 1843 | return |
| 1844 | try: |
| 1845 | count = int(arg or 1) |
| 1846 | except ValueError: |
| 1847 | self.error('Invalid frame count (%s)' % arg) |
| 1848 | return |
| 1849 | if count < 0: |
| 1850 | newframe = len(self.stack) - 1 |
| 1851 | else: |
| 1852 | newframe = min(len(self.stack) - 1, self.curindex + count) |
| 1853 | self._select_frame(newframe) |
| 1854 | do_d = do_down |
| 1855 | |
| 1856 | def do_until(self, arg): |
nothing calls this directly
no test coverage detected