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

Method dispatch_opcode

Lib/bdb.py:412–425  ·  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

410 return self.trace_dispatch
411
412 def dispatch_opcode(self, frame, arg):
413 """Invoke user function and return trace function for opcode event.
414 If the debugger stops on the current opcode, invoke
415 self.user_opcode(). Raise BdbQuit if self.quitting is set.
416 Return self.trace_dispatch to continue tracing in this scope.
417
418 Opcode event will always trigger the user callback. For now the only
419 opcode event is from an inline set_trace() and we want to stop there
420 unconditionally.
421 """
422 self.user_opcode(frame)
423 self.restart_events()
424 if self.quitting: raise BdbQuit
425 return self.trace_dispatch
426
427 # Normally derived classes don't override the following
428 # 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