remove_breakpoint
Removes a previously set breakpoint by specifying the session ID and the breakpoint ID obtained from list_breakpoints or set_breakpoint.
Instructions
Removes a previously set breakpoint. Use list_breakpoints to find breakpoint IDs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ID of the debugging session. | |
| breakpoint_id | Yes | ID of the breakpoint to remove. Obtain this from set_breakpoint or list_breakpoints. |
Implementation Reference
- src/session-manager.ts:241-256 (handler)Session manager handler for removing a breakpoint. Validates the breakpoint exists, delegates to CDP client to remove it, and cleans up the internal breakpoints set.
async removeBreakpoint( sessionId: string, breakpointId: string ): Promise<void> { const session = this.getSession(sessionId); if (!session.breakpoints.has(breakpointId)) { throw this.createError( ErrorCode.BREAKPOINT_NOT_FOUND, `Breakpoint ${breakpointId} not found` ); } await session.cdpClient.removeBreakpoint(breakpointId); session.breakpoints.delete(breakpointId); } - src/server.ts:140-158 (schema)Input schema registration for the 'remove_breakpoint' tool, defining session_id and breakpoint_id as required string parameters.
{ name: 'remove_breakpoint', description: 'Removes a previously set breakpoint. Use list_breakpoints to find breakpoint IDs.', inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'ID of the debugging session.', }, breakpoint_id: { type: 'string', description: 'ID of the breakpoint to remove. Obtain this from set_breakpoint or list_breakpoints.', }, }, required: ['session_id', 'breakpoint_id'], }, - src/server.ts:583-610 (registration)Tool dispatching logic: parses input with Zod schema, calls sessionManager.removeBreakpoint, and returns success response.
case 'remove_breakpoint': { const params = z .object({ session_id: z.string(), breakpoint_id: z.string(), }) .parse(args); await sessionManager.removeBreakpoint( params.session_id, params.breakpoint_id ); return { content: [ { type: 'text', text: JSON.stringify( { success: true, breakpoint_id: params.breakpoint_id, }, null, 2 ), }, ], }; - src/cdp-client.ts:140-143 (helper)Low-level CDP client method that sends the Debugger.removeBreakpoint command to Chrome DevTools Protocol.
async removeBreakpoint(breakpointId: string): Promise<void> { this.ensureConnected(); await this.client!.Debugger.removeBreakpoint({breakpointId}); } - TypeScript type declaration for the CDP Debugger.removeBreakpoint method.
removeBreakpoint(params: Protocol.Debugger.RemoveBreakpointRequest): Promise<void>; resume(params?: Protocol.Debugger.ResumeRequest): Promise<void>;