control_execution
Execute step into, step over, step out, continue, or stop actions to control Xdebug execution flow during PHP debugging.
Instructions
Controls the debugger's execution flow. Use to step through code or end sessions.
ACTIONS:
step_over: Execute current line, pause at next line in same scope. Use when: Line calls a function you don't need to debug. Example: Skip framework internals, focus on your logic.
step_into: Step INTO the function call on the current line. Use when: You need to debug inside a called function. Example: Debug why UserService::create() fails.
step_out: Run until current function returns to its caller. Use when: Done debugging a function, want to return to caller. Example: Finished debugging a helper, return to controller.
continue: Run until next breakpoint or exception. Use when: Skip to the next interesting point. Example: Jump from authentication to order processing.
stop: Terminate the debug session immediately. Use when: Done debugging, or session is stuck/errored. IMPORTANT: Always stop sessions when done to free the port.
REQUIRES:
Any action: Session must be active
step_over/step_into/step_out/continue: Session must be paused
AFTER STOP: You can start a new session with start_debug_session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The action: 'step_over' (next line), 'step_into' (enter function), 'step_out' (exit function), 'continue' (run to breakpoint), 'stop' (end session) |