stop_debug_session
Terminate an active debugging session and close the associated log server to end code instrumentation analysis.
Instructions
Stop the current debug session and shut down the log server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:149-175 (handler)Handler logic for the 'stop_debug_session' tool: verifies active session, retrieves instruments, removes them via instrumenter, stops the session using sessionManager, nullifies instrumenter, and returns a success message with count of removed instruments.case 'stop_debug_session': { if (!sessionManager.isActive()) { return { content: [{ type: 'text', text: 'No active debug session to stop.' }], }; } // Remove all instruments from files before stopping const instruments = sessionManager.getInstruments(); if (instrumenter) { for (const instrument of instruments) { instrumenter.removeInstrument(instrument); } } await sessionManager.stopSession(); instrumenter = null; return { content: [ { type: 'text', text: `Debug session stopped. Removed ${instruments.length} instrument(s) from code.`, }, ], }; }
- src/index.ts:48-55 (registration)Registration of the 'stop_debug_session' tool in the ListTools response, including name, description, and input schema (empty object).{ name: 'stop_debug_session', description: 'Stop the current debug session and shut down the log server.', inputSchema: { type: 'object', properties: {}, }, },
- src/index.ts:51-54 (schema)Input schema definition for the 'stop_debug_session' tool, specifying an empty object with no properties.inputSchema: { type: 'object', properties: {}, },