debug_inspect
Launch a program, run to a breakpoint, evaluate expressions in that frame, and disconnect in one call—use it to check values at a source line.
Instructions
One-shot inspection: launch a program, run to a breakpoint, evaluate a list of expressions in that frame, then disconnect. Collapses launch + wait + evaluate + disconnect into a single call. Use for 'what is X at line N?' debugging.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"adapter": "<adapter>",
"program": "<program>",
"at": "<at>"
},
"name": "debug_inspect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at | Yes | Breakpoint location to stop at | |
| cwd | No | Working directory for the program | |
| env | No | Environment variables | |
| args | No | Program arguments | |
| adapter | Yes | Adapter type to use (e.g. 'python', 'node') | |
| program | Yes | Path to the program to debug | |
| timeout | No | Milliseconds to wait for the breakpoint to be hit (default: 30000) | |
| expressions | No | Expressions to evaluate when stopped at the breakpoint. Omit to just verify the line is reached. | |
| launchConfig | No | Adapter-specific DAP launch fields | |
| adapterConfig | No | Override adapter config inline |