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