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

Method do_until

tools/python-3.11.9-amd64/Lib/pdb.py:1042–1063  ·  view source on GitHub ↗

unt(il) [lineno] Without argument, continue execution until the line with a number greater than the current one is reached. With a line number, continue execution until a line with a number greater or equal to that is reached. In both cases, also stop when

(self, arg)

Source from the content-addressed store, hash-verified

1040 do_d = do_down
1041
1042 def do_until(self, arg):
1043 """unt(il) [lineno]
1044 Without argument, continue execution until the line with a
1045 number greater than the current one is reached. With a line
1046 number, continue execution until a line with a number greater
1047 or equal to that is reached. In both cases, also stop when
1048 the current frame returns.
1049 """
1050 if arg:
1051 try:
1052 lineno = int(arg)
1053 except ValueError:
1054 self.error('Error in argument: %r' % arg)
1055 return
1056 if lineno <= self.curframe.f_lineno:
1057 self.error('"until" line number is smaller than current '
1058 'line number')
1059 return
1060 else:
1061 lineno = None
1062 self.set_until(self.curframe, lineno)
1063 return 1
1064 do_unt = do_until
1065
1066 def do_step(self, arg):

Callers

nothing calls this directly

Calls 2

errorMethod · 0.95
set_untilMethod · 0.80

Tested by

no test coverage detected