Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PhpStorm not displaying xdebug as stopped on breakpoint (docker)

So I have my webserver container happily running xdebug, and I have xdebug.remote_log setup so I could diagnose the issue. If I place a breakpoint on the first line phpstorm behaves as expected, it breaks, gives you the normal options. But if you allow it to continue running past that point phpstorm has the appearance that the code is timing out, it just hangs. However if I read the xdebug remote_log during this time, it reports that it has successfully hit the next breakpoint I set and is waiting there, phpstorm shows the code as executing.

Here are some screenshots of configs and such:

php.ini

enter image description here

settings > languages & frameworks > php > Debug

enter image description here

settings > languages & frameworks > php > Servers > localhost (docker) aka my only added server

enter image description here

Screenshot from the end of xdebugs remote_log. From the public/index.php initial breakpoint I then allowed it to run. And then here it states it broke in ListController.php which is the correct location for the next placed breakpoint. As you may have guessed from the previous image, in docker the repo is in /srv/www while on my local its in /home/myname/Development/projectName/checkout.

enter image description here

xdebug remote_log: https://pastebin.com/faiQqwMT

some code so stackoverflow will let me link the log

The only interesting part of my idea.log

2018-10-12 10:18:23,772 [81267328] ERROR - plication.impl.ApplicationImpl - Argument for @NotNull parameter 'remoteFileUrl' of com/jetbrains/php/debug/xdebug/debugger/XdebugDriver.onBreak must not be null java.lang.IllegalArgumentException: Argument for @NotNull parameter 'remoteFileUrl' of com/jetbrains/php/debug/xdebug/debugger/XdebugDriver.onBreak must not be null at com.jetbrains.php.debug.xdebug.debugger.XdebugDriver.$$$reportNull$$$0(XdebugDriver.java) at com.jetbrains.php.debug.xdebug.debugger.XdebugDriver.onBreak(XdebugDriver.java) at com.jetbrains.php.debug.xdebug.debugger.XdebugDriver$4.onResponse(XdebugDriver.java:172) at com.jetbrains.php.debug.xdebug.debugger.XdebugDriver$4.onResponse(XdebugDriver.java:167) at com.jetbrains.php.debug.connection.PhpDebugConnection.handleInput(PhpDebugConnection.java:256) at com.jetbrains.php.debug.connection.PhpDebugConnection.lambda$startReading$2(PhpDebugConnection.java:290) at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:314) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

like image 266
Shardj Avatar asked Oct 10 '18 16:10

Shardj


1 Answers

That's a known bug: https://youtrack.jetbrains.com/issue/WI-43622. Switching back to XDebug 2.6 should fix it.

like image 156
Dmitrii Avatar answered Nov 03 '22 05:11

Dmitrii