set_variable
Modify PHP variable values during debugging sessions to test different scenarios and fix issues in real-time.
Instructions
Set the value of a variable in the current scope
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Variable name (e.g., $x, $user->name) | |
| value | Yes | New value as a PHP literal (e.g., 42, "hello", true, null) | |
| context_id | No | Context ID | |
| stack_depth | No | Stack frame depth | |
| session_id | No | Session ID |