configureLogging
Set up debug logging for specific components in Delve MCP to monitor and troubleshoot Go program debugging sessions.
Instructions
Configure debug logging
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | Components to enable logging for | |
| destination | No | Log destination (file path or file descriptor) |
Implementation Reference
- src/handlers/config.ts:26-48 (handler)Handler logic for the 'configureLogging' tool within handleConfigCommands function. Validates components, sets DELVE_LOG environment variables, and returns confirmation message.case "configureLogging": { const { components, destination } = args; const validComponents = ["debugger", "gdbwire", "lldbout", "debuglineerr", "rpc", "dap", "fncall", "minidump", "stack"]; for (const component of components) { if (!validComponents.includes(component)) { throw new Error(`Invalid log component: ${component}`); } } process.env.DELVE_LOG = "1"; process.env.DELVE_LOG_OUTPUT = components.join(","); if (destination) { process.env.DELVE_LOG_DEST = destination; } return { content: [{ type: "text", text: `Configured logging for components: ${components.join(", ")}` }] }; }
- src/server.ts:374-394 (schema)Input schema for 'configureLogging' tool, defining required 'components' array with valid enums and optional 'destination' string.name: "configureLogging", description: "Configure debug logging", inputSchema: { type: "object", properties: { components: { type: "array", items: { type: "string", enum: ["debugger", "gdbwire", "lldbout", "debuglineerr", "rpc", "dap", "fncall", "minidump", "stack"] }, description: "Components to enable logging for" }, destination: { type: "string", description: "Log destination (file path or file descriptor)" } }, required: ["components"] } }
- src/server.ts:416-418 (registration)Registration/dispatch in CallToolRequestSchema handler that routes 'configureLogging' tool calls to the handleConfigCommands function.if (["setBackend", "configureLogging", "version"].includes(name)) { return handleConfigCommands(name, args); }