Skip to content

Commit e0892d1

Browse files
committed
Added mode selection for xdebug.
1 parent 73c6c2f commit e0892d1

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.env.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ PHP_OPCACHE_VALIDATE_TIMESTAMPS=1
2121

2222
# xDebug
2323
# (off|develop|coverage|debug|gcstats|profile|trace) For more information: https://xdebug.org/docs/all_settings#mode
24-
XDEBUG_MODE=debug
24+
PHP_XDEBUG_MODE=debug
2525
PHP_XDEBUG_REMOTE_HOST=${LOCAL_HOST_IP}
2626
PHP_XDEBUG_REMOTE_PORT=9003
2727
PHP_XDEBUG_IDEKEY=PHPSTORM

docker/php-fpm/docker-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ fi
4848
sed -i "s|{{PHP_OPCACHE_MEMORY_CONSUMPTION}}|${PHP_OPCACHE_MEMORY_CONSUMPTION}|g" $PHP_INI_DIR/conf.d/zz-opcache.ini
4949
sed -i "s|{{PHP_OPCACHE_MAX_ACCELERATED_FILES}}|${PHP_OPCACHE_MAX_ACCELERATED_FILES}|g" $PHP_INI_DIR/conf.d/zz-opcache.ini
5050

51+
sed -i "s|{{PHP_XDEBUG_MODE}}|${PHP_XDEBUG_MODE}|g" $PHP_INI_DIR/conf.d/zz-xdebug.ini
5152
sed -i "s|{{PHP_XDEBUG_REMOTE_HOST}}|${PHP_XDEBUG_REMOTE_HOST}|g" $PHP_INI_DIR/conf.d/zz-xdebug.ini
5253
sed -i "s|{{PHP_XDEBUG_REMOTE_PORT}}|${PHP_XDEBUG_REMOTE_PORT}|g" $PHP_INI_DIR/conf.d/zz-xdebug.ini
5354
sed -i "s|{{PHP_XDEBUG_IDEKEY}}|${PHP_XDEBUG_IDEKEY}|g" $PHP_INI_DIR/conf.d/zz-xdebug.ini

docker/php-fpm/etc/php-xdebug.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
; Xdebug settings will only kick in if the Xdebug module is loaded
44

5+
xdebug.mode={{PHP_XDEBUG_MODE}}
56
xdebug.client_host={{PHP_XDEBUG_REMOTE_HOST}}
67
xdebug.client_port={{PHP_XDEBUG_REMOTE_PORT}}
78
xdebug.idekey={{PHP_XDEBUG_IDEKEY}}

0 commit comments

Comments
 (0)