webdevops / Dockerfile

:package: Dockerfiles from WebDevOps for PHP, Apache and Nginx
https://webdevops.io/projects/dockerfiles/
MIT License
1.66k stars 492 forks source link

Not all XDEBUG environment variable are setup #351

Closed RogerSik closed 4 years ago

RogerSik commented 4 years ago

With docker-compose we used an extra file for XDEBUG

     env_file:
      - .env.appserver

and following enviromment variable is setup in the mention file. # are comments

# https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-apache-dev.html
# XDEBUG
PHP_DEBUGGER=xdebug
XDEBUG_REMOTE_HOST=10.101.66.238
XDEBUG_REMOTE_CONNECT_BACK=true
XDEBUG_MAX_NESTING_LEVEL=3000 # didn't work
XDEBUG_REMOTE_ENABLE=true
XDEBUG_IDE_KEY=PHPSTORM # didn't work

We tested the setup variables with php -i and the variables with the # didn't work was visible that they didn't got changed.

# php -i 
debug.idekey => docker => docker
xdebug.max_nesting_level => 1000 => 1000

We are using webdevops/php-apache:7.3

RogerSik commented 4 years ago

We helped us now with following variable

XDEBUG_CONFIG='remote_host=10.101.66.238 idekey=PHPSTORM max_nesting_level=3000'
htuscher commented 4 years ago

True, there's a conflict between the files bootstrap.d/20-php-module-xdebug.sh and entrypoint.d/10-php-debugger.sh during the provisioning phase.

I'll check in detail soon.

htuscher commented 4 years ago

Oh sry, it's just missing.

Orfeu24 commented 1 week ago

Hello, it seems that XDEBUG_IDE_KEY is still missing at least in this version : php-apache-dev/8.3

Thank you