Xdebug from Docker suddenly stopped working in PhpStorm

喜欢而已 提交于 2021-01-25 07:57:07

问题


I have used this for a long time without any issue, it was still working yesterday. I don't know what happened, maybe a silent update of PhpStorm or whatever - but it stopped working.

I checked with a local script, Xdebug still activates. I also used PhpStorm validation - no problem :

Now, when I load a page of the project, after activating the bookmarklet, it doesn't trigger anything. Also, I used to be able to launch scripts from the command line inside docker this way :

export PHP_IDE_CONFIG="serverName=localhost"
php -dxdebug.remote_enable=On -dxdebug.remote_autostart=On -dxdebug.remote_connect_back=On -dxdebug.idekey=PHPSTORM -dxdebug.remote_port=9000 -dxdebremote_host=localhost myscript.php

I tried checking all debug relevant stuff in config :

Nothing goes. I'm pretty stuck here. Thanks ahead for any help.

PhpStorm Version - 2020.3


回答1:


Xdebug 2.2.5
PhpStorm 2020.3

That's an issue in PhpStorm 2020.3. It is already fixed (WI-57282) for next minor 2020.3.1 version.

As I understand you are using some old PHP version (5.6 or alike) and cannot upgrade it to use newer PHP/latest Xdebug.

For the moment you either have to rollback to 2020.2.4 or wait for 2020.3.1 release (2020.3.1 Preview build is already available; final version should be released at some point later this month).



来源:https://stackoverflow.com/questions/65322779/xdebug-from-docker-suddenly-stopped-working-in-phpstorm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!