debug_launch
Launches an interactive debug session for a program, sets optional breakpoints, and reports whether execution stops, terminates, or times out.
Instructions
Launch an interactive debug session. With a breakpoint or stopOnEntry, waits by default and reports whether execution stopped, terminated, or timed out.
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>"
},
"name": "debug_launch"
}
}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 | No | Path to the program to debug; may instead be supplied through launchConfig | |
| timeout | No | Wait timeout in milliseconds (default: 30000) | |
| breakpoints | No | Breakpoints to set before launching | |
| stopOnEntry | No | Stop on program entry. Defaults to false when breakpoints are provided (run to first breakpoint), true otherwise. | |
| waitForStop | No | Wait for stopped/terminated outcome; defaults to true when a stop is expected | |
| launchConfig | No | Adapter-specific DAP launch properties; explicit common fields take precedence | |
| adapterConfig | No | Override adapter config inline instead of looking up from registry | |
| exceptionBreakpoints | No | Exception filter IDs (e.g. ['uncaughtExceptions']) |