MCPcopy Index your code
hub / github.com/python/cpython / do_until

Method do_until

Lib/pdb.py:1856–1878  ·  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

1854 do_d = do_down
1855
1856 def do_until(self, arg):
1857 """unt(il) [lineno]
1858
1859 Without argument, continue execution until the line with a
1860 number greater than the current one is reached. With a line
1861 number, continue execution until a line with a number greater
1862 or equal to that is reached. In both cases, also stop when
1863 the current frame returns.
1864 """
1865 if arg:
1866 try:
1867 lineno = int(arg)
1868 except ValueError:
1869 self.error('Error in argument: %r' % arg)
1870 return
1871 if lineno <= self.curframe.f_lineno:
1872 self.error('"until" line number is smaller than current '
1873 'line number')
1874 return
1875 else:
1876 lineno = None
1877 self.set_until(self.curframe, lineno)
1878 return 1
1879 do_unt = do_until
1880
1881 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