docker4drupal icon indicating copy to clipboard operation
docker4drupal copied to clipboard

XDEBUG documentation

Open MrUpsidown opened this issue 5 months ago • 0 comments

I believe things have changed since you last edited the documentation. I am using PHPStorm 2024.2.1 on a Ubuntu VM and I can't get XDEBUG to work.

The documentation is vague, wrong or incomplete. Options mentioned are not to be found in my IDE. I have been trying this for hours now and NEVER got anything to work. I click "Start listening" then "Debug my-ide" buttons in PHPStorm and all I get is Firefox to open on the hostname I have set in the IDE and get a SERVER NOT FOUND error.

For example : http://any-host-as-mentioned-in-the-docs/?XDEBUG_SESSION_START=12790

Please help.

docker-compose.yml

      PHP_XDEBUG: 1
      PHP_XDEBUG_MODE: debug
      PHP_IDE_CONFIG: serverName=my-ide
      PHP_XDEBUG_IDEKEY: "my-ide"
      PHP_XDEBUG_CLIENT_HOST: 172.17.0.1 # Linux

MrUpsidown avatar Sep 20 '24 09:09 MrUpsidown