wodby / docker4drupal

Docker-based Drupal stack
https://wodby.com/docker4drupal
MIT License
1.24k stars 535 forks source link

XDEBUG documentation #569

Open MrUpsidown opened 2 months ago

MrUpsidown commented 2 months ago

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