continue
Resume execution of a paused Go program within an active debug session by specifying the session ID.
Instructions
Continue program execution
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | ID of the debug session |
Implementation Reference
- src/handlers/control.ts:52-60 (handler)Handler for the 'continue' tool - sends a 'Command' with name 'continue' to the Delve debugger to resume program execution.
case "continue": { await sendDelveCommand(session, "Command", { name: "continue" }); return { content: [{ type: "text", text: "Continued execution" }] }; } - src/server.ts:181-194 (schema)Schema/tool definition for 'continue' - defines its name, description, and input schema (requires sessionId).
{ name: "continue", description: "Continue program execution", inputSchema: { type: "object", properties: { sessionId: { type: "string", description: "ID of the debug session" } }, required: ["sessionId"] } }, - src/server.ts:411-413 (registration)Registration/route for 'continue' - the CallToolRequestSchema handler routes the 'continue' tool name to handleControlCommands.
if (["setBreakpoint", "removeBreakpoint", "continue", "next", "step", "stepout", "variables", "evaluate"].includes(name)) { return handleControlCommands(name, args); } - src/handlers/control.ts:1-12 (helper)Imports the helper sendDelveCommand which is used by the continue handler to communicate with the Delve debugger.
import { sessions, sendDelveCommand } from '../session.js'; import { Breakpoint } from '../types.js'; /** * Handle execution control commands */ export async function handleControlCommands(name: string, args: any) { const { sessionId } = args; const session = sessions.get(sessionId); if (!session) { throw new Error(`Debug session ${sessionId} not found`); }