Skip to main content
Glama
workbackai
by workbackai

step_into

Step into function calls while debugging NodeJS applications to inspect variables and trace execution flow within the MCP NodeJS Debugger.

Instructions

Steps into function calls

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'step_into' tool. It checks if the debugger is enabled and paused, then sends the 'Debugger.stepInto' command to the inspector, or returns appropriate error messages.
    async () => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } if (!inspector.paused) { return { content: [{ type: "text", text: "Debugger is not paused at a breakpoint" }] }; } await inspector.send('Debugger.stepInto', {}); return { content: [{ type: "text", text: "Stepped into function call" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping into: ${err.message}` }] }; } }
  • Registration of the 'step_into' MCP tool using server.tool, including empty input schema and the handler function.
    server.tool( "step_into", "Steps into function calls", {}, async () => { try { // Ensure debugger is enabled if (!inspector.debuggerEnabled) { await inspector.enableDebugger(); } if (!inspector.paused) { return { content: [{ type: "text", text: "Debugger is not paused at a breakpoint" }] }; } await inspector.send('Debugger.stepInto', {}); return { content: [{ type: "text", text: "Stepped into function call" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping into: ${err.message}` }] }; } } );

Other Tools

Related Tools

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/workbackai/mcp-nodejs-debugger'

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