dap
Start a Debug Adapter Protocol server to connect debugging tools with the Delve debugger for analyzing Go programs.
Instructions
Start a DAP (Debug Adapter Protocol) server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clientAddr | No | Optional address where DAP client is waiting for connection |
Implementation Reference
- src/handlers/debug.ts:78-89 (handler)The handler logic for the 'dap' tool, which starts a DAP debug session using startDebugSession with optional client address and returns a confirmation message.case "dap": { const { clientAddr } = args; const cmdArgs = clientAddr ? ["--client-addr", clientAddr] : []; const session = await startDebugSession("dap", "", cmdArgs); return { content: [{ type: "text", text: `Started DAP server session ${session.id}${clientAddr ? ` connecting to ${clientAddr}` : ''}` }] }; }
- src/server.ts:288-300 (schema)Input schema definition for the 'dap' tool, including optional 'clientAddr' parameter.{ name: "dap", description: "Start a DAP (Debug Adapter Protocol) server", inputSchema: { type: "object", properties: { clientAddr: { type: "string", description: "Optional address where DAP client is waiting for connection" } } } },
- src/server.ts:406-407 (registration)Dispatches calls to the 'dap' tool (and other debug tools) to the handleDebugCommands handler.if (["debug", "attach", "exec", "test", "core", "dap", "replay", "trace"].includes(name)) { return handleDebugCommands(name, args);