step_over
Advance execution to the next line in the current function, running any function call fully without stepping into it, when the debug session is paused.
Instructions
Steps over the current statement to the next line in the same function. If the current line contains a function call, the entire function executes without stepping into it. The session must be paused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ID of the debugging session. The session must be paused. |
Implementation Reference
- src/server.ts:191-207 (registration)Tool registration: defines the 'step_over' tool with name, description, and inputSchema (requires session_id).
{ name: 'step_over', description: 'Steps over the current statement to the next line in the same function. ' + 'If the current line contains a function call, the entire function executes without stepping into it. ' + 'The session must be paused.', inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'ID of the debugging session. The session must be paused.', }, }, required: ['session_id'], }, }, - src/server.ts:663-683 (handler)Handler: parses session_id from args, calls sessionManager.stepOver(), returns success/stepping state.
case 'step_over': { const params = z.object({session_id: z.string()}).parse(args); await sessionManager.stepOver(params.session_id); return { content: [ { type: 'text', text: JSON.stringify( { success: true, state: 'stepping', }, null, 2 ), }, ], }; } - src/session-manager.ts:305-309 (helper)Helper: sessionManager.stepOver() retrieves the session, ensures it is paused, then delegates to cdpClient.stepOver().
async stepOver(sessionId: string): Promise<void> { const session = this.getSession(sessionId); this.ensurePaused(session); await session.cdpClient.stepOver(); } - src/cdp-client.ts:164-167 (helper)Helper: cdpClient.stepOver() calls Chrome DevTools Protocol Debugger.stepOver via the CDP client.
async stepOver(): Promise<void> { this.ensureConnected(); await this.client!.Debugger.stepOver({}); } - src/server.ts:197-206 (schema)Input schema for step_over: an object with required string session_id.
inputSchema: { type: 'object', properties: { session_id: { type: 'string', description: 'ID of the debugging session. The session must be paused.', }, }, required: ['session_id'], },