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

Method _set_caller_tracefunc

Lib/bdb.py:565–573  ·  view source on GitHub ↗
(self, current_frame)

Source from the content-addressed store, hash-verified

563 self._set_trace_opcodes(opcode)
564
565 def _set_caller_tracefunc(self, current_frame):
566 # Issue #13183: pdb skips frames after hitting a breakpoint and running
567 # step commands.
568 # Restore the trace function in the caller (that may not have been set
569 # for performance reasons) when returning from the current frame, unless
570 # the caller is the botframe.
571 caller_frame = current_frame.f_back
572 if caller_frame and not caller_frame.f_trace and caller_frame is not self.botframe:
573 caller_frame.f_trace = self.trace_dispatch
574
575 # Derived classes and clients can call the following methods
576 # to affect the stepping state.

Callers 1

dispatch_returnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected