step_into
Steps into a function call during a paused debugging session to examine internal code execution.
Instructions
Steps into a function call if the current line contains one, otherwise steps to the next statement. Use this to examine what happens inside a function. 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/cdp-client.ts:172-175 (handler)Low-level CDP client method that calls Chrome Debugger Protocol's Debugger.stepInto to step into a function call.
async stepInto(): Promise<void> { this.ensureConnected(); await this.client!.Debugger.stepInto({}); } - src/session-manager.ts:316-320 (handler)Session manager method that retrieves the session, ensures it is paused, and calls the CDP client's stepInto.
async stepInto(sessionId: string): Promise<void> { const session = this.getSession(sessionId); this.ensurePaused(session); await session.cdpClient.stepInto(); } - src/server.ts:685-700 (handler)Server handler that parses the session_id input, calls sessionManager.stepInto, and returns a success response with 'stepping' state.
case 'step_into': { const params = z.object({session_id: z.string()}).parse(args); await sessionManager.stepInto(params.session_id); return { content: [ { type: 'text', text: JSON.stringify( { success: true, state: 'stepping', }, null, 2 - src/server.ts:213-222 (schema)Input schema definition for the step_into tool, requiring a 'session_id' string parameter.
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:209-223 (registration)Tool registration entry with name 'step_into', description, and input schema, registered alongside other debugging tools.
name: 'step_into', description: 'Steps into a function call if the current line contains one, otherwise steps to the next statement. ' + 'Use this to examine what happens inside a function. 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'], }, },