MCPcopy Index your code
hub / github.com/RustPython/RustPython / do_down

Method do_down

Lib/pdb.py:964–981  ·  view source on GitHub ↗

d(own) [count] Move the current frame count (default one) levels down in the stack trace (to a newer frame).

(self, arg)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

errorMethod · 0.95
_select_frameMethod · 0.95
lenFunction · 0.85
minFunction · 0.85

Tested by

no test coverage detected