Connect to Debug Adapter
connect_dapEstablish a TCP connection to a running Debug Adapter Protocol server to enable debugging operations like runtime state inspection and expression evaluation.
Instructions
Establishes a TCP connection to a running Debug Adapter Protocol (DAP) server. This must be called before inspect_runtime_state or evaluate_expression. The debug adapter must already be listening on the specified host and port (e.g., a Node.js app started with --inspect-brk, or a VS Code debug adapter in server mode).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | The host where the debug adapter is listening. | 127.0.0.1 |
| port | Yes | The TCP port where the debug adapter is listening. | |
| adapter_id | No | Identifier for the type of debug adapter (e.g., "node", "python", "go", "cppdbg"). Used during the DAP initialize handshake. | node |
| protocol | No | The protocol to use. "auto" will try to detect if it is a V8 inspector first. | auto |
| timeout_ms | No | Timeout in milliseconds for individual DAP requests. |