Docker PHP with Xdebug 3 env XDEBUG_MODE doesn't work
问题 I’m trying to config Xdebug 3 in PHP container, and set XDEBUG_MODE env variable to off according with documentation https://xdebug.org/docs/all_settings#mode but xdebug_info() shows that mode=develop . How to fix? Dockerfile: FROM php:7.4.11-fpm … ENV XDEBUG_MODE=off ENV XDEBUG_CONFIG="" RUN pecl install xdebug \ && docker-php-ext-enable xdebug \ ... docker-compose.yml: services: php: build: dockerfile: ${PWD}/.devcontainer/Dockerfile image: php-fpm environment: XDEBUG_MODE: ${XDEBUG_MODE} /