I am running my server with symfony server:start command and I would like to debug it as usual with PHP remote debug provided by PhpStorm.
I've configured my Xdebug with these:
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_host = localhost
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM
zend_extension=xdebug.so
xdebug.remote_autostart = 1
I have installed the debugtool for my browser and configured my server in the PHP remote debug window.
When I'm trying to debug my IDE is breaking in the router at /myuser/.symfony/php/3769648aac6303b385b2ccc41cfd442044060c7d-router.php:12 and saying it's outside the project.
I also tried path mappings with no results.
If you need more Information please let me know.




/myuser/.symfony/php/folder .. so the "outside of the project" message will be correct here. 2) That path, it looks like a PHP temp folder or alike and that3769648aac6303b385b2ccc41cfd442044060c7d-router.phpfile is auto-generated (Symfony optimisation/compilation).Settings/Preferences | Languages & Frameworks | PHP | Debug | Xdebug | Force break at first line when a script is outside the projectoption for that.symfony server:startcommand (that suggests that it's a local execution (the same OS/host)). Then you are mentioning "php remote debug" few times ... that suggests otherwise (that it's a remote debug .. and perhaps path mappings is the issue here). You better clarify your setup as much as possible, with screenshots (they help a lot)/Documents/dev/myprojectand that's breaking in my Symfony CLI installed in my computer.