My Visual Studio debugger is not working properly and I get "Error evaluating code" for everything (see the variable value, 1+1, and any other PHP code). All fixes are not working.
I tried with:
VS 2017/2019/2022
PHP 7.4, PHP8.0, PHP 8.1, PHP 8.2
I tried multiple configurations of php.ini
I'm using XAMPP 3.3.0 on W10.
Xdebug log show errors like this when I try to run any PHP code in the immediate window:
[8796] [Step Debug] <- eval -i 16-0 -- ZXZhbCgidHJ5IHsgcmV0dXJuICAxICsgMTsgfWNhdGNoIChUaHJvd2FibGUgJHQpeyByZXR1cm4gbmV3IERldnNlbnNlRXZhbEVycm9yKCR0LT5nZXRNZXNzYWdlKCkpO31jYXRjaCAoRXhjZXB0aW9uICRlKXsgcmV0dXJuIG5ldyBEZXZzZW5zZUV2YWxFcnJvcigkZS0+Z2V0TWVzc2FnZSgpKTt9Iik7
[8796] [Step Debug] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="16-0" status="break" reason="ok"><error code="206"><message><![CDATA[error evaluating code]]></message></error></response>
I'm trying to solve this issue by 1 year. No success.