PhpStorm is not receiving xdebug connections : PhpStorm event log : Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'

后端 未结 7 1173
时光说笑
时光说笑 2020-12-09 02:28

I configured everything for PhpStorm and xdebug to work, I\'m running Ubuntu 14.04.

the connection back to the IDE is not established, and I get this in the IDE eve

7条回答
  •  伪装坚强ぢ
    2020-12-09 02:50

    I have recently had the same problem attempting to debug using PHPStorm under nginx and php-fpm, in my case this was not related to the xdebug, nginx or php-fpm config, it was the path mappings in phpstorm that were missing.

    Initially PHPStorm will notify you when it cannot map a file on the server to a local source file however if it has a mapping to the first files hit ( normally index.php or some such ) but it cannot map a file used at a later stage ( in my case this was the autoloader in the vendor directory of a project using composer ) then PHPStorm will not be able to debug any further and debugging will stop.

    In order to rectify this in PHPStorm go to settings/Languages & Frameworks/PHP/Servers and ensure the root of your project is mapped correctly to it's counterpart directory on the server.

    PHPStorm should then be able to map all the files in your project and debugging should continue.

    I hope this helps.

提交回复
热议问题