removeBreakpoint
Eliminate a breakpoint during debugging by specifying the session and breakpoint IDs. This tool is part of the Delve MCP server, designed for managing Go program debugging tasks efficiently.
Instructions
Remove a breakpoint
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| breakpointId | Yes | ID of the breakpoint to remove | |
| sessionId | Yes | ID of the debug session |
Implementation Reference
- src/handlers/control.ts:39-50 (handler)Executes the removeBreakpoint tool by sending a ClearBreakpoint command to the Delve session and removing the breakpoint from the session's local map.case "removeBreakpoint": { const { breakpointId } = args; await sendDelveCommand(session, "ClearBreakpoint", { id: breakpointId }); session.breakpoints.delete(breakpointId); return { content: [{ type: "text", text: `Removed breakpoint ${breakpointId}` }] }; }
- src/server.ts:163-180 (registration)Registers the removeBreakpoint tool in the MCP server's tool list, including its description and input schema.{ name: "removeBreakpoint", description: "Remove a breakpoint", inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "ID of the debug session" }, breakpointId: { type: "number", description: "ID of the breakpoint to remove" } }, required: ["sessionId", "breakpointId"] } },
- src/server.ts:411-412 (helper)Routes calls to removeBreakpoint (and other control tools) to the handleControlCommands function.if (["setBreakpoint", "removeBreakpoint", "continue", "next", "step", "stepout", "variables", "evaluate"].includes(name)) { return handleControlCommands(name, args);