Home » Php » Symfony 3: Debugging with symfony's development server

Symfony 3: Debugging with symfony's development server

Posted by: admin October 26, 2017 Leave a comment

Questions:

During the development on a symfony 3.3 project I use the symfony’s internal server as seen there But I cannot figure out how to use the xdebug in order to debug it. I mean I have installed and configured xdebug via:

apt-get install php-xdebug

And I export:

export XDEBUG_CONFIG="idekey=phpstorm" 

But when I put a breakpoint to my IDE and I enable the xdebug via that plugin I still get no response.

Also I have put the following settings on /etc/php/7.0/mods-available/xdebug.ini

zend_extension=xdebug.so
xdebug.remote_enable=On
xdebug.remote_autostart=On
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9021
xdebug.remote_mode=req

And I have configured both phpstorm to listen over port 9021. But I still get the problem that I cannot make phpstorm to listen over a breakpoint. Do you fellows have any sort of idea how I can fix that over my ubuntu-16.04 machine?

Furthermore I have looked on thjeese questions without any success:

EDIT 1

I also tried to export the following:

export XDEBUG_CONFIG="idekey=PHPSTORM"

An configuring the firefox plugin but still get the very same behaviour. Also keep in ming that I made the phpstorm to listen over xdebug by pressing the phpstop xdebug button button.

EDIT 2

I also put the following configuration over my phpstorm:

Php configuration

Still does not work.

Answers: