step_over
Skip the current line of code and move to the next in the execution flow while debugging a NodeJS server, enabling precise code inspection and troubleshooting.
Instructions
Steps over to the next line of code
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/mcp-server.js:621-653 (handler)The core handler function for the 'step_over' tool. It checks if the debugger is enabled and paused, then sends the Chrome DevTools Protocol 'Debugger.stepOver' command to step over the current line.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.stepOver', {}); return { content: [{ type: "text", text: "Stepped over to next line" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping over: ${err.message}` }] }; } }
- src/mcp-server.js:617-654 (registration)Registers the 'step_over' tool with the MCP server using server.tool(). The tool has no input parameters and uses the provided handler.server.tool( "step_over", "Steps over to the next line of code", {}, 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.stepOver', {}); return { content: [{ type: "text", text: "Stepped over to next line" }] }; } catch (err) { return { content: [{ type: "text", text: `Error stepping over: ${err.message}` }] }; } } );
- src/mcp-server.js:620-620 (schema)Input schema for the tool: empty object, indicating no required parameters.{},