{"id":48440122,"url":"https://github.com/theodo-group/debug-that","last_synced_at":"2026-04-06T15:03:45.604Z","repository":{"id":337441799,"uuid":"1153616024","full_name":"theodo-group/debug-that","owner":"theodo-group","description":"Universal debugger CLI built for AI agents. Allows Claude Code and Codex to debug much faster. Support Node (Javascript, Typescript), bun, lldb (C++/Rust), python. Fast, token-efficient, no fluff.","archived":false,"fork":false,"pushed_at":"2026-03-31T09:16:02.000Z","size":32891,"stargazers_count":132,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T11:30:49.842Z","etag":null,"topics":["agent","bun","claude","cli","debugger","lldb","nodejs"],"latest_commit_sha":null,"homepage":"https://theodo-group.github.io/debug-that/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theodo-group.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-09T14:02:12.000Z","updated_at":"2026-03-31T09:15:43.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/theodo-group/debug-that","commit_stats":null,"previous_names":["theodo-group/agent-dbg","theodo-group/debug-that"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/theodo-group/debug-that","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2Fdebug-that","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2Fdebug-that/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2Fdebug-that/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2Fdebug-that/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theodo-group","download_url":"https://codeload.github.com/theodo-group/debug-that/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theodo-group%2Fdebug-that/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31477013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T14:34:32.243Z","status":"ssl_error","status_checked_at":"2026-04-06T14:34:31.723Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","bun","claude","cli","debugger","lldb","nodejs"],"created_at":"2026-04-06T15:03:12.533Z","updated_at":"2026-04-06T15:03:45.599Z","avatar_url":"https://github.com/theodo-group.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debug-that\n\nDebugger CLI built for AI agents. Fast, token-efficient, no fluff.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/demo.gif\" alt=\"debug-that demo\" /\u003e\n\u003c/p\u003e\n\n**Why?** Agents waste tokens on print-debugging. A real debugger gives precise state inspection in minimal output — variables, stack, breakpoints — all via short `@ref` handles.\n\nInspired by Vercel's [agent-browser](https://github.com/vercel-labs/agent-browser) CLI — the same `@ref` concept, applied to debugging instead of browsing.\n\n## Supported Runtimes \u0026 Languages\n\n| Runtime | Language | Status | Protocol |\n|---------|----------|--------|----------|\n| Node.js | JavaScript | Supported | V8 Inspector (CDP) |\n| Node.js + tsx/ts-node | TypeScript | Supported | V8 Inspector (CDP) + Source Maps |\n| Bun | JavaScript / TypeScript | Supported | WebKit Inspector (JSC) |\n| LLDB | C / C++ / Rust / Swift | Supported | DAP (Debug Adapter Protocol) |\n| Deno | JavaScript / TypeScript | Planned | V8 Inspector (CDP) |\n| Python (debugpy) | Python | Supported | DAP |\n| Go (delve) | Go | Planned | DAP |\n| Java (JDWP) | Java / Kotlin | Planned | DAP |\n\ndbg auto-detects the runtime from the launch command and uses the appropriate protocol adapter. For native languages, use `--runtime lldb` to select the DAP adapter.\n\n## Install\n\nRequires [Bun](https://bun.sh).\n\n```bash\nbun install --global debug-that\nnpx skills add theodo-group/debug-that # Install Claude Code skill\n```\n\n## Example\n```bash\n\u003e dbg launch --brk tsx src/app.ts\nSession \"default\" started (pid 70445)\nPaused at ./src/app.ts:0:1\n\n\u003e dbg break src/app.ts:19\nBP#1 set at src/app.ts:19\n\n\u003e dbg continue\nPaused at ./src/app.ts:19:21 (other)\n\nSource:\n   16|\n   17|const alice: Person = { name: \"Alice\", age: 30 };\n   18|const greeting: string = greet(alice);\n \u003e 19|const sum: number = add(2, 3);\n                          ^\n   20|console.log(greeting);\n   21|console.log(\"Sum:\", sum);\n   22|\n\nLocals:\n@v1  greet     Function greet(person)\n@v2  add       Function add(a,b)\n@v3  alice     Object { name: \"Alice\", age: 30 }\n@v4  greeting  \"Hello, Alice! Age: 30\"\n\nStack:\n@f0  (anonymous)  ./src/app.ts:19:21\n@f1  run          node:internal/modules/esm/module_job:413:25\n\nBreakpoints: 1 active\n```\n\n## Usage\n\n```bash\n# Node.js\ndbg launch --brk node app.js\n\n# TypeScript (via tsx)\ndbg launch --brk tsx src/app.ts\n\n# Bun\ndbg launch --brk bun app.ts\n\n# C/C++ (via LLDB)\ndbg launch --brk --runtime lldb ./my_program\n\n# Attach to a running process (any runtime with --inspect)\ndbg attach 9229\n\n# Debug loop\ndbg break src/handler.ts:42\ndbg continue\ndbg vars\ndbg props @v3\ndbg eval \"x + 1\"\ndbg step over\ndbg set @v1 100\ndbg hotpatch src/handler.ts   # live-edit from disk (JS/TS only)\ndbg stop\n```\n\n## Commands\n\n| Category | Commands |\n|---|---|\n| Session | `launch`, `attach`, `stop`, `status`, `sessions` |\n| Execution | `continue`, `step [over\\|into\\|out]`, `pause`, `run-to`, `restart-frame` |\n| Inspection | `state`, `vars`, `stack`, `eval`, `props`, `source`, `scripts`, `search`, `console`, `exceptions` |\n| Breakpoints | `break`, `break-rm`, `break-ls`, `break-toggle`, `breakable`, `logpoint`, `catch`, `break-fn` (DAP only) |\n| Mutation | `set`, `set-return`, `hotpatch` |\n| Blackbox | `blackbox`, `blackbox-ls`, `blackbox-rm` |\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003ccode\u003edbg --help\u003c/code\u003e full reference\u003c/summary\u003e\n\n```\ndbg — Debugger CLI for AI agents\n\nUsage: dbg \u003ccommand\u003e [options]\n\nSession:\n  launch [--brk] \u003ccommand...\u003e      Start + attach debugger\n    [--dsym \u003cpath\u003e] [--source-map \u003cfrom\u003e:\u003cto\u003e]\n  attach \u003cpid|ws-url|port\u003e         Attach to running process\n  stop                             Kill process + daemon\n  sessions [--cleanup]             List active sessions\n  status                           Session info\n\nExecution (returns state automatically):\n  continue                         Resume execution\n  step [over|into|out]             Step one statement\n  run-to \u003cfile\u003e:\u003cline\u003e             Continue to location\n  pause                            Interrupt running process\n  restart-frame [@fN]              Re-execute frame from beginning\n\nInspection:\n  state [-v|-s|-b|-c]              Debug state snapshot\n    [--depth N] [--lines N] [--frame @fN] [--all-scopes] [--compact] [--generated]\n  vars [name...]                   Show local variables\n    [--frame @fN] [--all-scopes]\n  stack [--async-depth N]          Show call stack\n    [--generated] [--filter \u003ckeyword\u003e]\n  eval \u003cexpression\u003e                Evaluate expression\n    [--frame @fN] [--silent] [--timeout MS] [--side-effect-free]\n  props \u003c@ref\u003e                     Expand object properties\n    [--own] [--depth N] [--private] [--internal]\n  source [--lines N]               Show source code\n    [--file \u003cpath\u003e] [--all] [--generated]\n  search \u003cquery\u003e                   Search loaded scripts\n    [--regex] [--case-sensitive] [--file \u003cid\u003e]\n  scripts [--filter \u003cpattern\u003e]     List loaded scripts\n  modules [--filter \u003cpattern\u003e]     List loaded modules/libraries (DAP only)\n  console [--since N] [--level]    Console output\n    [--clear]\n  exceptions [--since N]           Captured exceptions\n\nBreakpoints:\n  break \u003cfile\u003e:\u003cline\u003e              Set breakpoint\n    [--condition \u003cexpr\u003e] [--hit-count \u003cn\u003e] [--continue] [--pattern \u003cregex\u003e:\u003cline\u003e]\n  break-rm \u003cBP#|all\u003e               Remove breakpoint\n  break-ls                         List breakpoints\n  break-toggle \u003cBP#|all\u003e           Enable/disable breakpoints\n  breakable \u003cfile\u003e:\u003cstart\u003e-\u003cend\u003e   List valid breakpoint locations\n  logpoint \u003cfile\u003e:\u003cline\u003e \u003ctpl\u003e     Set logpoint\n    [--condition \u003cexpr\u003e]\n  catch [all|uncaught|caught|none] Pause on exceptions\n\nMutation:\n  set \u003c@ref|name\u003e \u003cvalue\u003e          Change variable value\n  set-return \u003cvalue\u003e               Change return value (at return point)\n  hotpatch \u003cfile\u003e [--dry-run]      Live-edit script source\n\nBlackboxing:\n  blackbox \u003cpattern...\u003e            Skip stepping into matching scripts\n  blackbox-ls                      List current patterns\n  blackbox-rm \u003cpattern|all\u003e        Remove patterns\n\nSource Maps:\n  sourcemap [file]                 Show source map info\n  sourcemap --disable              Disable resolution globally\n\nSetup:\n  install \u003cadapter\u003e                Download managed adapter binary\n  install --list                   Show installed adapters\n\nDiagnostics:\n  logs [-f|--follow]               Show CDP protocol log\n    [--limit N] [--domain \u003cname\u003e] [--clear]\n\nGlobal flags:\n  --session NAME                   Target session (default: \"default\")\n  --json                           JSON output\n  --color                          ANSI colors\n  --help-agent                     LLM reference card\n  --help                           Show this help\n  --version                        Show version\n```\n\n\u003c/details\u003e\n\n## Architecture\n\n```\nCLI (stateless)  --\u003e  Unix socket IPC  --\u003e  Daemon (per session)\n                                              |\n                                     DebugSession / DapSession\n                                       /                \\\n                              CDP path (JS)          DAP path (native)\n                                 |                       |\n                           RuntimeAdapter            DapClient\n                            /         \\            (stdin/stdout)\n                      NodeAdapter    BunAdapter         |\n                      (CDP/V8)    (WebKit/JSC)     lldb-dap / etc.\n                            \\         /\n                          CdpClient (WebSocket)\n                                 |\n                          V8/JSC Inspector\n```\n\nThe daemon manages two session types:\n- **DebugSession** (CDP) — for JavaScript runtimes (Node.js, Bun). Uses `RuntimeAdapter` to handle protocol differences between V8 and JSC.\n- **DapSession** (DAP) — for native debuggers (LLDB, etc.). Communicates with a debug adapter over stdin/stdout using the Debug Adapter Protocol.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodo-group%2Fdebug-that","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheodo-group%2Fdebug-that","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheodo-group%2Fdebug-that/lists"}