How to debug in PHPStorm with built in webserver using Symfony command line tool How to debug in PHPStorm with built in webserver using Symfony command line tool symfony symfony

How to debug in PHPStorm with built in webserver using Symfony command line tool


You shouldn't create a run configuration at all, just to click on the listen button:

  1. Configure xdebug to attempt to debug every single script (xdebug.remote_autostart = 1 and xdebug.remote_enable = 1).

  2. Use "Phone handle" icon in IDE to start listening for debug connections (e.g. as described in here)

  3. Launch your php code from anywhere -- XDebug will attempt to debug every incoming request.

Here is an hour long webinar about the subject.

bonus

if you're interested in doing the same thing on vi + xdebug, see this answer.


For anyone coming to this post while following all the details but it's still not working.
PHPStorm debugger for (PHP Built-in Server) somehow is problemmetic with the localhost host URL. Just change it to 127.0.0.1 and watch the magic :)

Host-url