My problem is, that the debugger always stops at the first breakpoint I set (doesn't matter where I set it in the code) but when I continue the execution it seems to jump to a random location in the code. Doesn't make any difference here if I use "step into, "step over" or "continue". I checked if any key on the keyboard is stuck but I can't find anything here and I also cleaned the browser cache and invalidated the PhpStorm caches. After some random time it works normally again and I can step around like I want.
The other weird part is, that it always jumps to the same random location from every set breakpoint, but every breakpoint got another random location.
I am using PhpStorm (latest Version) and Xdebug 2.7 for Remote Debugging with the following configuration
php.ini:
[Xdebug]
zend_extension="C:\xampp\php\ext\php_xdebug-2.7.0alpha1-7.0-vc14.dll"
xdebug.remote_enable=true
xdebug.remote_port="9000"
xdebug.remote_connect_back=true
xdebug.remote_autostart=1
xdebug.collect_return="0"
xdebug.profiler_enable=0;
xdebug.remote_log="D:\xampp\logs\xdebug.log"
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host = 192.168.1.129
PhpStorm:

I got this problem every 2nd or 3rd day at the moment for a few hours and just can't figure out what is going on.
Is there maybe a shortcut or anything like that, that I activated without knowing it?
So i just had the problem again and it seems that removing the watches (as suggested here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000602950-XDebug-Remote-Debugger-seems-to-jump-to-random-locations) fixes it. I will keep an eye on this and post an update if the error occures again and removing the watches doesn't fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With