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

Method do_up

Lib/pdb.py:944–961  ·  view source on GitHub ↗

u(p) [count] Move the current frame count (default one) levels up in the stack trace (to an older frame).

(self, arg)

Source from the content-addressed store, hash-verified

942 self.lineno = None
943
944 def do_up(self, arg):
945 """u(p) [count]
946 Move the current frame count (default one) levels up in the
947 stack trace (to an older frame).
948 """
949 if self.curindex == 0:
950 self.error('Oldest frame')
951 return
952 try:
953 count = int(arg or 1)
954 except ValueError:
955 self.error('Invalid frame count (%s)' % arg)
956 return
957 if count < 0:
958 newframe = 0
959 else:
960 newframe = max(0, self.curindex - count)
961 self._select_frame(newframe)
962 do_u = do_up
963
964 def do_down(self, arg):

Callers

nothing calls this directly

Calls 3

errorMethod · 0.95
_select_frameMethod · 0.95
maxFunction · 0.85

Tested by

no test coverage detected