| 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. |