evaluate
Evaluate PHP expressions in debug sessions to inspect variables, call methods, or perform calculations during PHP debugging with Xdebug.
Instructions
Evaluate a PHP expression in the current context. Returns the result of the expression. Use for calculations, method calls, or inspecting computed values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | PHP expression to evaluate (e.g., '$x + $y', 'count($array)', '$user->getName()', 'array_keys($data)') | |
| stack_depth | No | Stack frame depth | |
| session_id | No | Session ID |