configureLogging
Enable logging for selected Delve debug components and specify the destination for log output.
Instructions
Configure debug logging
Input 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 function for configureLogging that validates logging components, sets environment variables DELVE_LOG, DELVE_LOG_OUTPUT, and optionally DELVE_LOG_DEST.
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:373-394 (schema)Input schema definition for configureLogging tool: requires components array (with enum validation) 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)Routes configureLogging tool calls to handleConfigCommands in the CallToolRequestSchema handler.
if (["setBackend", "configureLogging", "version"].includes(name)) { return handleConfigCommands(name, args); }