class_docstr: A web-based debugger.
code: def __init__(
      self,
      frames: list[debugger_core.DebuggerFrame],
      thread_id,
      completekey: str = "tab",
      host: str = "",
      port: int = 5555,
  ):
      if (host, port) not in _web_consoles:
          _web_consoles[host, port] = web_pdb.WebConsole(
              host, port, self
          )
      # Clobber the debugger in the web console
      _web_console = _web_consoles[host, port]
      _web_console._debugger = weakref.proxy(self)
      super().__init__(
          frames,
          thread_id,
          stdin=_web_console,
          stdout=_web_console,
          completekey=completekey,
      )
  
file_path: jax/jax/_src/debugger/web_debugger.py
imports: from __future__ import annotations
  import os
  from typing import Any
  import weakref
  from jax._src.debugger import cli_debugger
  from jax._src.debugger import core
label_desc: Use image node_id 1 to create a new WebDebugger object from inherited base classes: cli_debugger with example: obj = WebDebugger(frames, thread_id, completekey, host, port)