create_debug_session
Starts a new debugging session for supported languages, either by launching a program or attaching to a running process for breakpoints and step-through debugging.
Instructions
Create a new debugging session. Provide host and port to attach to a running process; omit them for launch mode. Attaching pauses the target unless stopOnEntry is false
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Host to attach to for remote debugging (optional, triggers attach mode) | |
| name | No | Optional session name | |
| port | No | Debug port to attach to for remote debugging (optional, triggers attach mode) | |
| timeout | No | Connection timeout in milliseconds for attach mode (default: 30000) | |
| language | Yes | Programming language for debugging | |
| stopOnEntry | No | Attach mode only: same as attach_to_process.stopOnEntry — omitted means true, the target is paused after attach (possibly late, reported as pending:true). Pass false to attach to a live service without stopping it | |
| adapterConfig | No | Attach mode only: adapter-specific attach configuration merged into the attach config (see attach_to_process) | |
| verifyTimeout | No | Attach mode only: how long to wait (ms) for the debugger to report at least one thread after attaching before failing the attach (default: 20000, max: 600000) | |
| executablePath | No | Path to language executable (optional, will auto-detect if not provided) |