File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change
1
+ Significance: patch
2
+ Type: dev
3
+ Comment: Update the Dockerfile to support more Xdebug config arguments.
4
+
5
+
Original file line number Diff line number Diff line change 1
1
FROM wordpress:php8.1
2
+ ARG XDEBUG_MODE=coverage,debug
2
3
ARG XDEBUG_REMOTE_PORT
3
4
ARG XDEBUG_REMOTE_HOST=host.docker.internal
4
5
ARG XDEBUG_START_WITH_REQUEST=trigger
6
+ ARG XDEBUG_SHOW_ERROR_TRACE=0
7
+ ARG XDEBUG_SHOW_EXCEPTION_TRACE=0
5
8
RUN pecl install xdebug \
6
- && echo ' xdebug.mode=coverage,debug' >> $PHP_INI_DIR/php.ini \
9
+ && echo " xdebug.mode=${XDEBUG_MODE}" >> $PHP_INI_DIR/php.ini \
7
10
&& echo "xdebug.client_port=${XDEBUG_REMOTE_PORT}" >> $PHP_INI_DIR/php.ini \
8
11
&& echo "xdebug.client_host=${XDEBUG_REMOTE_HOST}" >> $PHP_INI_DIR/php.ini \
9
12
&& echo "xdebug.start_with_request=${XDEBUG_START_WITH_REQUEST}" >> $PHP_INI_DIR/php.ini \
13
+ && echo "xdebug.show_error_trace=${XDEBUG_SHOW_ERROR_TRACE}" >> $PHP_INI_DIR/php.ini \
14
+ && echo "xdebug.show_exception_trace=${XDEBUG_SHOW_EXCEPTION_TRACE}" >> $PHP_INI_DIR/php.ini \
10
15
&& docker-php-ext-enable xdebug
11
16
RUN apt-get update \
12
17
&& apt-get install --assume-yes --quiet --no-install-recommends gnupg2 subversion mariadb-client less jq openssh-client
You can’t perform that action at this time.
0 commit comments