Invoke user function and return trace function for line event. If the debugger stops on the current line, invoke self.user_line(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope.
(self, frame)
| 293 | return self.trace_dispatch |
| 294 | |
| 295 | def dispatch_line(self, frame): |
| 296 | """Invoke user function and return trace function for line event. |
| 297 | |
| 298 | If the debugger stops on the current line, invoke |
| 299 | self.user_line(). Raise BdbQuit if self.quitting is set. |
| 300 | Return self.trace_dispatch to continue tracing in this scope. |
| 301 | """ |
| 302 | # GH-136057 |
| 303 | # For line events, we don't want to stop at the same line where |
| 304 | # the latest next/step command was issued. |
| 305 | if (self.stop_here(frame) or self.break_here(frame)) and not ( |
| 306 | self.cmdframe == frame and self.cmdlineno == frame.f_lineno |
| 307 | ): |
| 308 | self.user_line(frame) |
| 309 | self.restart_events() |
| 310 | if self.quitting: raise BdbQuit |
| 311 | elif not self.get_break(frame.f_code.co_filename, frame.f_lineno): |
| 312 | self.disable_current_event() |
| 313 | return self.trace_dispatch |
| 314 | |
| 315 | def dispatch_call(self, frame, arg): |
| 316 | """Invoke user function and return trace function for call event. |
no test coverage detected