I have a PHP7.1 + nginx setup on Windows Linux Subsystem (WSL).
I'm mentioning WSL, so that in PhpStorm Xdebug is configured as a remote debugger, which connects via port 9000. Still WSL and PhpStorm using the same physical files.
For Symfony 4 project I'm using it's built in web-server: bin/console server:run
I've managed to set up PhpStorm to accept Xdebug connections. When the connection is established it asks or file mappings. I would expect index.php to be asked for, but the file mapping requested is:
vendor/symfony/web-server-bundle/Resources/router.php.
As said in the docs inside this file - this file implements rewrite rules for PHP built-in web server. Okay.
If I accept the mapping to this file - debugging starts at router.php goes a few lines further and than nothing else happens. It doesn't jump to my public/index.php or doesn't stop on any breakpoint.
The question is - how to configure Symfony 4 debugging with Xdebug? Maybe it is something wrong with mappings or what?