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