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
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.