delete_breakpoint
Remove a specific breakpoint in the MCP NodeJS Debugger by providing the breakpoint ID to streamline debugging and code inspection.
Instructions
Deletes a specified breakpoint
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| breakpointId | Yes | ID of the breakpoint to remove |
Implementation Reference
- src/mcp-server.js:783-811 (handler)Handler function that removes the specified breakpoint by sending 'Debugger.removeBreakpoint' to the inspector WebSocket and deleting it from local tracking.async ({ breakpointId }) => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } await inspector.send('Debugger.removeBreakpoint', { breakpointId: breakpointId }); // Remove from our local tracking inspector.breakpoints.delete(breakpointId); return { content: [{ type: "text", text: `Breakpoint ${breakpointId} removed` }] }; } catch (err) { return { content: [{ type: "text", text: `Error removing breakpoint: ${err.message}` }] }; } }
- src/mcp-server.js:780-782 (schema)Input schema defining the breakpointId parameter using Zod validation.{ breakpointId: z.string().describe("ID of the breakpoint to remove") },
- src/mcp-server.js:777-812 (registration)Registration of the delete_breakpoint tool using server.tool, including name, description, schema, and handler.server.tool( "delete_breakpoint", "Deletes a specified breakpoint", { breakpointId: z.string().describe("ID of the breakpoint to remove") }, async ({ breakpointId }) => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } await inspector.send('Debugger.removeBreakpoint', { breakpointId: breakpointId }); // Remove from our local tracking inspector.breakpoints.delete(breakpointId); return { content: [{ type: "text", text: `Breakpoint ${breakpointId} removed` }] }; } catch (err) { return { content: [{ type: "text", text: `Error removing breakpoint: ${err.message}` }] }; } } );