Setting Up Xdebug and PhpStorm


Is there anyone who has set up remote debugging with Xdebug? I can’t do it. Local debugging on localhost works smoothly.

I enabled Xdebug on the server.

I have added these records to PHP FPM Settings:

  • debug.idekey = PHPSTORM
  • xdebug.remote_enable = on
  • xdebug.remote_autostart = off
  • xdebug.remote_connect_back = 1

phpinfo() shows that everything is ready, but the remote session does not start.