MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / do_down

Method do_down

tools/python-3.11.9-amd64/Lib/pdb.py:1022–1039  ·  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

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

Callers

nothing calls this directly

Calls 3

errorMethod · 0.95
_select_frameMethod · 0.95
minFunction · 0.85

Tested by

no test coverage detected