Stop when the line with the lineno greater than the current one is reached or when returning from current frame.
(self, frame, lineno=None)
| 290 | # to affect the stepping state. |
| 291 | |
| 292 | def set_until(self, frame, lineno=None): |
| 293 | """Stop when the line with the lineno greater than the current one is |
| 294 | reached or when returning from current frame.""" |
| 295 | # the name "until" is borrowed from gdb |
| 296 | if lineno is None: |
| 297 | lineno = frame.f_lineno + 1 |
| 298 | self._set_stopinfo(frame, frame, lineno) |
| 299 | |
| 300 | def set_step(self): |
| 301 | """Stop after one line of code.""" |