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)
| 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. |
no test coverage detected