MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / dispatch_call

Method dispatch_call

tools/python-3.11.9-amd64/Lib/bdb.py:118–138  ·  view source on GitHub ↗

Invoke user function and return trace function for call event. If the debugger stops on this function call, invoke self.user_call(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope.

(self, frame, arg)

Source from the content-addressed store, hash-verified

116 return self.trace_dispatch
117
118 def dispatch_call(self, frame, arg):
119 """Invoke user function and return trace function for call event.
120
121 If the debugger stops on this function call, invoke
122 self.user_call(). Raise BdbQuit if self.quitting is set.
123 Return self.trace_dispatch to continue tracing in this scope.
124 """
125 # XXX 'arg' is no longer used
126 if self.botframe is None:
127 # First call of dispatch since reset()
128 self.botframe = frame.f_back # (CT) Note that this may also be None!
129 return self.trace_dispatch
130 if not (self.stop_here(frame) or self.break_anywhere(frame)):
131 # No need to trace this function
132 return # None
133 # Ignore call events in generator except when stepping.
134 if self.stopframe and frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
135 return self.trace_dispatch
136 self.user_call(frame, arg)
137 if self.quitting: raise BdbQuit
138 return self.trace_dispatch
139
140 def dispatch_return(self, frame, arg):
141 """Invoke user function and return trace function for return event.

Callers 1

trace_dispatchMethod · 0.95

Calls 3

stop_hereMethod · 0.95
break_anywhereMethod · 0.95
user_callMethod · 0.95

Tested by

no test coverage detected