Stop only at breakpoints or when finished. If there are no breakpoints, set the system trace function to None.
(self)
| 617 | self.start_trace() |
| 618 | |
| 619 | def set_continue(self): |
| 620 | """Stop only at breakpoints or when finished. |
| 621 | |
| 622 | If there are no breakpoints, set the system trace function to None. |
| 623 | """ |
| 624 | # Don't stop except at breakpoints or when finished |
| 625 | self._set_stopinfo(self.botframe, None, -1) |
| 626 | if not self.breaks: |
| 627 | # no breakpoints; run without debugger overhead |
| 628 | self.stop_trace() |
| 629 | frame = sys._getframe().f_back |
| 630 | while frame and frame is not self.botframe: |
| 631 | del frame.f_trace |
| 632 | frame = frame.f_back |
| 633 | for frame, (trace_lines, trace_opcodes) in self.frame_trace_lines_opcodes.items(): |
| 634 | frame.f_trace_lines, frame.f_trace_opcodes = trace_lines, trace_opcodes |
| 635 | if self.backend == 'monitoring': |
| 636 | self.monitoring_tracer.update_local_events() |
| 637 | self.frame_trace_lines_opcodes = {} |
| 638 | |
| 639 | def set_quit(self): |
| 640 | """Set quitting attribute to True. |
no test coverage detected