step_into
Step into function calls during NodeJS debugging to examine internal execution flow and inspect variables within called functions.
Instructions
Steps into function calls
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.js:657-694 (handler)Full handler implementation for the 'step_into' tool. Registers the tool with MCP server and defines the async handler function that ensures the debugger is enabled and paused, then sends the Chrome DevTools Protocol 'Debugger.stepInto' command to step into function calls.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}` }] }; } } );
- src/mcp-server.js:657-694 (registration)The server.tool call that registers the 'step_into' tool with the MCP server, including description, empty schema, and inline handler.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}` }] }; } } );