MCPcopy Index your code
hub / github.com/RustPython/RustPython / dispatch_line

Method dispatch_line

Lib/bdb.py:304–322  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 1

trace_dispatchMethod · 0.95

Calls 6

stop_hereMethod · 0.95
break_hereMethod · 0.95
user_lineMethod · 0.95
restart_eventsMethod · 0.95
get_breakMethod · 0.95
disable_current_eventMethod · 0.95

Tested by

no test coverage detected