debug_run
Runs a program to completion through a debugger and returns all stdout/stderr/console output; use logpoints for printf-style debugging without modifying source.
Instructions
Launch a program with no stops, let it run to completion, and return all stdout/stderr/console output. Optionally inject logpoints (breakpoints with logMessage) for printf-style debugging without modifying source. Use for 'what does this script actually do?' cases where you don't need to inspect intermediate state.
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>"
},
"name": "debug_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | Total wall-clock timeout for the whole run in milliseconds (default: 60000) | |
| logpoints | No | Logpoints to emit per-hit messages without pausing execution | |
| adapterConfig | No | Override adapter config inline |