step_out
Resume execution until the current function returns, allowing you to skip remaining code within the function and continue debugging from the caller.
Instructions
Steps out of current function
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.js:696-734 (registration)Registration of the 'step_out' tool via server.tool() with name, description, empty schema, and handler callback
// Step out tool 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:701-733 (handler)Handler function for step_out: checks debugger is enabled, verifies debugger is paused, sends Debugger.stepOut command via inspector, and returns success or 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.stepOut', {}); return { content: [{ type: "text", text: "Stepped out of current function" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping out: ${err.message}` }] }; } }