Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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: {}, }, },
  • Input schema definition for the 'stop_debug_session' tool, specifying an empty object with no properties.
    inputSchema: { type: 'object', properties: {}, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/iarmankhan/agentic-debugger'

If you have feedback or need assistance with the MCP directory API, please join our Discord server