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