debug-that 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -2
- package/dist/main.js +20880 -11357
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Debugger CLI built for AI agents. Fast, token-efficient, no fluff.
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
<img src="docs/demo
|
|
6
|
+
<img src="docs/demo.gif" alt="debug-that demo" />
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
**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.
|
|
@@ -110,7 +110,93 @@ dbg stop
|
|
|
110
110
|
| Mutation | `set`, `set-return`, `hotpatch` |
|
|
111
111
|
| Blackbox | `blackbox`, `blackbox-ls`, `blackbox-rm` |
|
|
112
112
|
|
|
113
|
-
|
|
113
|
+
<details>
|
|
114
|
+
<summary><code>dbg --help</code> full reference</summary>
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
dbg — Debugger CLI for AI agents
|
|
118
|
+
|
|
119
|
+
Usage: dbg <command> [options]
|
|
120
|
+
|
|
121
|
+
Session:
|
|
122
|
+
launch [--brk] <command...> Start + attach debugger
|
|
123
|
+
[--dsym <path>] [--source-map <from>:<to>]
|
|
124
|
+
attach <pid|ws-url|port> Attach to running process
|
|
125
|
+
stop Kill process + daemon
|
|
126
|
+
sessions [--cleanup] List active sessions
|
|
127
|
+
status Session info
|
|
128
|
+
|
|
129
|
+
Execution (returns state automatically):
|
|
130
|
+
continue Resume execution
|
|
131
|
+
step [over|into|out] Step one statement
|
|
132
|
+
run-to <file>:<line> Continue to location
|
|
133
|
+
pause Interrupt running process
|
|
134
|
+
restart-frame [@fN] Re-execute frame from beginning
|
|
135
|
+
|
|
136
|
+
Inspection:
|
|
137
|
+
state [-v|-s|-b|-c] Debug state snapshot
|
|
138
|
+
[--depth N] [--lines N] [--frame @fN] [--all-scopes] [--compact] [--generated]
|
|
139
|
+
vars [name...] Show local variables
|
|
140
|
+
[--frame @fN] [--all-scopes]
|
|
141
|
+
stack [--async-depth N] Show call stack
|
|
142
|
+
[--generated] [--filter <keyword>]
|
|
143
|
+
eval <expression> Evaluate expression
|
|
144
|
+
[--frame @fN] [--silent] [--timeout MS] [--side-effect-free]
|
|
145
|
+
props <@ref> Expand object properties
|
|
146
|
+
[--own] [--depth N] [--private] [--internal]
|
|
147
|
+
source [--lines N] Show source code
|
|
148
|
+
[--file <path>] [--all] [--generated]
|
|
149
|
+
search <query> Search loaded scripts
|
|
150
|
+
[--regex] [--case-sensitive] [--file <id>]
|
|
151
|
+
scripts [--filter <pattern>] List loaded scripts
|
|
152
|
+
modules [--filter <pattern>] List loaded modules/libraries (DAP only)
|
|
153
|
+
console [--since N] [--level] Console output
|
|
154
|
+
[--clear]
|
|
155
|
+
exceptions [--since N] Captured exceptions
|
|
156
|
+
|
|
157
|
+
Breakpoints:
|
|
158
|
+
break <file>:<line> Set breakpoint
|
|
159
|
+
[--condition <expr>] [--hit-count <n>] [--continue] [--pattern <regex>:<line>]
|
|
160
|
+
break-rm <BP#|all> Remove breakpoint
|
|
161
|
+
break-ls List breakpoints
|
|
162
|
+
break-toggle <BP#|all> Enable/disable breakpoints
|
|
163
|
+
breakable <file>:<start>-<end> List valid breakpoint locations
|
|
164
|
+
logpoint <file>:<line> <tpl> Set logpoint
|
|
165
|
+
[--condition <expr>]
|
|
166
|
+
catch [all|uncaught|caught|none] Pause on exceptions
|
|
167
|
+
|
|
168
|
+
Mutation:
|
|
169
|
+
set <@ref|name> <value> Change variable value
|
|
170
|
+
set-return <value> Change return value (at return point)
|
|
171
|
+
hotpatch <file> [--dry-run] Live-edit script source
|
|
172
|
+
|
|
173
|
+
Blackboxing:
|
|
174
|
+
blackbox <pattern...> Skip stepping into matching scripts
|
|
175
|
+
blackbox-ls List current patterns
|
|
176
|
+
blackbox-rm <pattern|all> Remove patterns
|
|
177
|
+
|
|
178
|
+
Source Maps:
|
|
179
|
+
sourcemap [file] Show source map info
|
|
180
|
+
sourcemap --disable Disable resolution globally
|
|
181
|
+
|
|
182
|
+
Setup:
|
|
183
|
+
install <adapter> Download managed adapter binary
|
|
184
|
+
install --list Show installed adapters
|
|
185
|
+
|
|
186
|
+
Diagnostics:
|
|
187
|
+
logs [-f|--follow] Show CDP protocol log
|
|
188
|
+
[--limit N] [--domain <name>] [--clear]
|
|
189
|
+
|
|
190
|
+
Global flags:
|
|
191
|
+
--session NAME Target session (default: "default")
|
|
192
|
+
--json JSON output
|
|
193
|
+
--color ANSI colors
|
|
194
|
+
--help-agent LLM reference card
|
|
195
|
+
--help Show this help
|
|
196
|
+
--version Show version
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
</details>
|
|
114
200
|
|
|
115
201
|
## Architecture
|
|
116
202
|
|