class_docstr: A text-based debugger.
class_docstr_tok: ["A","text-based","debugger","."]
code: def print_backtrace(self):
      backtrace = []
      backtrace.append("Traceback:")
      for frame in self.frames[::-1]:
          backtrace.append(
              f'  File "{frame.filename}", line {frame.lineno}'
          )
          if frame.offset is None:
              backtrace.append("    <no source>")
          else:
              line = frame.source[frame.offset]
              backtrace.append(f"    {line.strip()}")
      print("\n".join(backtrace), file=self.stdout)
  
imports: from __future__ import annotations
  import cmd
  import pprint
  import sys
  import traceback
  from typing import Any, IO
  from jax._src.debugger import core
label_desc: Use image node_id 5 for calling the CliDebugger obj's underlying member method code with example usage: obj.print_backtrace() without return types