debug_launch
Launch a program for debugging and receive a session ID to control the debug session. Supports Rust via cargo build arguments or pre-built binaries.
Instructions
Launch a program for debugging. Returns session_id for subsequent operations. For Rust: use adapter='rust' with either 'program' (pre-built binary) or 'cargo_args' (e.g., ['build', '--bin', 'myapp']) to build and debug.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "debug_launch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory | |
| env | No | Environment variables | |
| args | No | Command line arguments | |
| adapter | No | Debug adapter to use | debugpy |
| program | No | Path to the program to debug. Required unless cargo_args is provided. | |
| cargo_args | No | Cargo build arguments (e.g., ['build', '--bin', 'myapp']). If provided, builds with cargo and debugs the result. | |
| stop_on_entry | No | Stop on entry point |