Skip to content

Commit c63cdb0

Browse files
committed
update XDebug init settings
1 parent c425c51 commit c63cdb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ RUN apt-get update -yqq \
7676
# https://github.com/andreccosta/wordpress-xdebug-dockerbuild
7777
RUN pecl install xdebug \
7878
&& docker-php-ext-enable xdebug \
79-
&& echo "xdebug.profiler_enable_trigger = 1" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini \
80-
&& echo "xdebug.profiler_output_dir = /tmp/xdebug_profiler" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini \
79+
&& echo "xdebug.mode = profile" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini \
80+
&& echo "xdebug.start_with_request = trigger" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini \
81+
&& echo "xdebug.output_dir = /tmp/xdebug_profiler" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini \
8182
&& echo "debug.remote_host = host.docker.internal" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini \
8283
&& rm -rf /tmp/pear
8384
# && echo "xdebug.remote_enable = 1" >> /usr/local/etc/php/conf.d/z_iop-xdebug.ini

0 commit comments

Comments
 (0)