step_out
Step out of the current function during NodeJS debugging to resume execution at the caller's level.
Instructions
Steps out of current function
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.js:701-733 (handler)Handler function that checks if debugger is paused, then sends 'Debugger.stepOut' command to the inspector, returning success or error message.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.stepOut', {}); return { content: [{ type: "text", text: "Stepped out of current function" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping out: ${err.message}` }] }; } }
- src/mcp-server.js:697-734 (registration)Registration of the 'step_out' tool with server.tool, including name, description, empty schema, and handler function.server.tool( "step_out", "Steps out of current function", {}, 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.stepOut', {}); return { content: [{ type: "text", text: "Stepped out of current function" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping out: ${err.message}` }] }; } } );
- src/mcp-server.js:700-700 (schema)Empty input schema (no parameters required).{},