debug_attach
Attach to a running debug server or process to get a session ID for subsequent debugging. For Python, provide host/port; for Rust, provide PID or program name.
Instructions
Attach to a running debug server or process. Returns session_id for subsequent operations. For Python: provide host/port. For Rust: provide pid or program name.
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_attach"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pid | No | Process ID to attach to (local attach) | |
| host | No | Host to connect to (remote attach) | |
| port | No | Port to connect to (remote attach) | |
| adapter | No | Debug adapter to use | debugpy |