Inspect runtime state at a line
debug_atAuto-selects a debug adapter, launches the program, pauses at file:line, evaluates expressions, and reports breakpoint, termination, or timeout details before cleanup.
Instructions
Primary one-shot debugging tool for bugs and failing behavior. Auto-selects a ready adapter, launches the program, stops at file:line, evaluates expressions, reports breakpoint/termination/timeout details, and cleans up.
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": {
"file": "<file>",
"line": "<line>"
},
"name": "debug_at"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project and debuggee working directory | |
| env | No | Environment variables | |
| args | No | Program arguments | |
| file | Yes | Source file containing the breakpoint | |
| line | Yes | One-based breakpoint line | |
| adapter | No | Adapter type; auto-detected from file/project when omitted | |
| program | No | Launch target; defaults to file for Python/Node and cwd for Go | |
| timeout | No | Breakpoint wait timeout in milliseconds | |
| condition | No | Conditional breakpoint expression | |
| expressions | No | Expressions to evaluate in the stopped frame | |
| hitCondition | No | Adapter-specific hit count condition | |
| launchConfig | No | Adapter-specific DAP launch fields |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hit | Yes | ||
| hint | No | ||
| output | No | ||
| reason | No | ||
| status | No | ||
| values | No | ||
| adapter | Yes | ||
| exitCode | No | ||
| location | No | ||
| timedOut | No | ||
| exception | No | ||
| breakpoint | No |