MCPcopy Index your code
hub / github.com/ipython/ipython / _pdbcmd_print_frame_status

Method _pdbcmd_print_frame_status

IPython/core/debugger.py:636–647  ·  view source on GitHub ↗

Use print_stack_entry to print frames in Python 3.14+.

(self, arg)

Source from the content-addressed store, hash-verified

634 self.shell.hooks.synchronize_with_editor(filename, lineno, 0)
635
636 def _pdbcmd_print_frame_status(self, arg):
637 """Use print_stack_entry to print frames in Python 3.14+."""
638 if sys.version_info[:2] >= (3, 14):
639 # This is the only line changed from the base class.
640 self.print_stack_entry(self.stack[self.curindex])
641
642 # Same as in 3.14
643 self._validate_file_mtime()
644 self._show_display()
645 else:
646 # 3.13 and 3.12 don't need any changes.
647 super()._pdbcmd_print_frame_status(arg) # type: ignore[misc]
648
649 def _get_frame_locals(self, frame):
650 """ "

Callers

nothing calls this directly

Calls 1

print_stack_entryMethod · 0.95

Tested by

no test coverage detected