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:
echo "is it working?";
$i = 0;
$x = 123; // Debugger never reaches here, no matter what
... 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: Here is an animation of this problem.