Symfony 3: Debugging with Symfony's development server
In the end the following steps are needed:
Put the following content into:
/etc/php/7.0/mods-available/xdebug.ini
zend_extension=xdebug.soxdebug.remote_enable=Onxdebug.remote_handler=dbgpxdebug.remote_host=localhostxdebug.remote_port=9021xdebug.remote_mode=req
Export:
export XDEBUG_CONFIG="idekey=PHPSTORM"
Then configure PhpStorm as the image shows.
Set as IDE key
PHPSTORM
into the Firefox pluginEnable xdebug on Firefox via pressing the button. Alternatively you can append the url with
?XDEBUG_START
partThen press the button in PhpStorm. In case you see the then press it back again.
NOTE:
In case you change xdebug settings TERMINATE the xdebug session by pressing button and pressing back again.
Furthermore in case you run composer via terminal disable PhpStorm to listen xdebug by pressing button.