MCPcopy Index your code
hub / github.com/python/cpython / dispatch_opcode

Method dispatch_opcode

Lib/bdb.py:403–416  ·  view source on GitHub ↗

Invoke user function and return trace function for opcode event. If the debugger stops on the current opcode, invoke self.user_opcode(). Raise BdbQuit if self.quitting is set. Return self.trace_dispatch to continue tracing in this scope. Opcode event will always trig

(self, frame, arg)

Source from the content-addressed store, hash-verified

401 return self.trace_dispatch
402
403 def dispatch_opcode(self, frame, arg):
404 """Invoke user function and return trace function for opcode event.
405 If the debugger stops on the current opcode, invoke
406 self.user_opcode(). Raise BdbQuit if self.quitting is set.
407 Return self.trace_dispatch to continue tracing in this scope.
408
409 Opcode event will always trigger the user callback. For now the only
410 opcode event is from an inline set_trace() and we want to stop there
411 unconditionally.
412 """
413 self.user_opcode(frame)
414 self.restart_events()
415 if self.quitting: raise BdbQuit
416 return self.trace_dispatch
417
418 # Normally derived classes don't override the following
419 # methods, but they may if they want to redefine the

Callers 1

trace_dispatchMethod · 0.95

Calls 2

user_opcodeMethod · 0.95
restart_eventsMethod · 0.95

Tested by

no test coverage detected