
All of that worked but still the debugger didn't work. I also did a ping to my host machine from within the container to test if there's a connection and a telnet to test for port 9000. Any ideas why this is not working?Īnyways I tried this already before with different settings including the and my actual IP address. The other two settings from my still apply though. Trigger an Xdebug breakpoint in PhpStorm. Configure PhpStorm for Xdebug connections. Enable disable check the status of Xdebug. But now when I docker-compose down and up again it doesn't change in the phpinfo anymore. Install the Xdebug helper browser plugin for Chrome & PhpStorm. I am pretty sure this was added to the config correctly before. Your IDE should be now correctly configured. Now configure it like this: Make sure you associate it with the previously created server definition. Th app is running inside docker and remote_host should be set to by my docker-compose.yml that I have attached above, for some reason this line doesn't seem to have any effect anymore XDEBUG_CONFIG: remote_host= On the top right, click on edit configurations: Click in the green plus sign at the top left and select PHP Remote Debug from the list. For CLI script debugging I suggest to override xdebug. XDEBUG_CONFIG: remote_log=/var/log/apache2/xdebug.log To make this work for PhpStorm, the xdebug.ini file should contain at least two entries: xdebug.remoteconnectback0 (that is, if you want a debugging session triggered from the browser).

This is the output of my phpinfo xdebug support

Now when I activate this extension and set phpstorm to listen for incoming php debug connections and set a few breakpoints, when I reload the page nothing happens. If you are using the PHPStorm IDE, with the configuration above in place. I also installed the browser extension for chrome. The farmOS development Docker image comes pre-installed with XDebug 3. When I go to Preferences -> PHP > Debug and Validate the debugger configuration (as a local web server) this works and gives me the following output: enable the xdebug extension in the php-worker container 'Listening for PHP Debug Connections' from PhpStorm restart the php workers Running the following make targets will trigger a breakpoint in worker. It all started out with that oh-so-modern cause of a community. Now as the last thing I tried to set up Xdebug, which isn't working. Turbocharged PHP Development with Xdebug, Docker & PHPStorm. Now I set this up in PHPStom as a local webserver (because it's running on 127.0.0.1:80 and the sourcecode is mounted as a volume) I have a magento project set up in a docker-compose with two services: php-apache7.2 and mariadb10.1.36
