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.
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 |