I recently tried to switch from PHP 7 to PHP 8, but I'm having trouble with Xdebug behaving oddly.
Basically step-sequencer seems to hit just fine. Variables view does show $_COOKIE
and $_SERVER
variables, but whenever I assign an variable, such as $i = 0;
step debug seems to somehow fail or disconnect. After few seconds browser tries to reload script and step sequencer is hit again.
Some steps seem to work. For example:
<?php
echo "is it working?";
die();
$i = 0;
... results to "is it working?" output, but if I move the die();
to come after setting $i
, script seems to somehow fail and restart. Browser displays "This site can't be reached".
I haven't been able to produce any errors to any logs or such. Any idea what could be causing this? No such issues on PHP 7 and older version of Xdebug.
Edit: Added copy of xdebug.txt (single loading round, starts looping if page refresh hits) and php.ini xdebug-section. Please see here : https://controlc.com/b215b1f1