using xdebug inside symfony code example
Example: symfony xdebug
In the end the following steps are needed:
Put the following content into: /etc/php/7.0/mods-available/xdebug.ini
zend_extension=xdebug.so
xdebug.remote_enable=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9021
xdebug.remote_mode=req
Export:
export XDEBUG_CONFIG="idekey=PHPSTORM"
Then configure PhpStorm as the image shows.
Set as IDE key PHPSTORM into the Firefox plugin
Enable xdebug on Firefox via pressing the Firefox enable xdebug button button. Alternatively you can append the url with ?XDEBUG_START part
Then press the button disabled xdebug button in PhpStorm. In case you see the PhpStorm enable xdebug](https://i.stack.imgur.com/whuPx.png) button press that until it becomes ![button disabled xdebug then press it back again.
NOTE:
In case you change xdebug settings TERMINATE the xdebug session by pressing PhpStorm enable xdebug button and pressing back again.
Furthermore in case you run composer via terminal disable PhpStorm to listen xdebug by pressing PhpStorm enable xdebug button.