diff --git a/dockerfiles/php-fpm/php73.Dockerfile b/dockerfiles/php-fpm/php73.Dockerfile index 5feb74d..0b74c1d 100644 --- a/dockerfiles/php-fpm/php73.Dockerfile +++ b/dockerfiles/php-fpm/php73.Dockerfile @@ -26,6 +26,13 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \ ;fi ########################################################################### +# xDebug (termporary): +########################################################################### + +# Copy xdebug configuration for remote debugging +COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini + +########################################################################### # Tune opts: ########################################################################### diff --git a/dockerfiles/php-fpm/php74.Dockerfile b/dockerfiles/php-fpm/php74.Dockerfile index f833009..8c273ad 100644 --- a/dockerfiles/php-fpm/php74.Dockerfile +++ b/dockerfiles/php-fpm/php74.Dockerfile @@ -26,6 +26,13 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \ ;fi ########################################################################### +# xDebug (termporary): +########################################################################### + +# Copy xdebug configuration for remote debugging +COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini + +########################################################################### # Tune opts: ########################################################################### diff --git a/dockerfiles/php-fpm/xdebug.ini b/dockerfiles/php-fpm/xdebug.ini new file mode 100644 index 0000000..6981068 --- /dev/null +++ b/dockerfiles/php-fpm/xdebug.ini @@ -0,0 +1,25 @@ +; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) + +;xdebug.remote_host=dockerhost +xdebug.remote_connect_back=1 +xdebug.remote_port=9000 +xdebug.idekey=PHPSTORM + +xdebug.remote_autostart=1 +xdebug.remote_enable=1 +xdebug.cli_color=0 +xdebug.profiler_enable=1 +xdebug.profiler_enable_trigger=1 +xdebug.profiler_output_dir=/tmp + +xdebug.remote_handler=dbgp +xdebug.remote_mode=req + +xdebug.var_display_max_children=-1 +xdebug.var_display_max_data=-1 +xdebug.var_display_max_depth=-1 + +xdebug.trace_enable_trigger=1 +xdebug.trace_output_dir=/tmp +xdebug.trace_output_name="trace.%t" + diff --git a/src/dockerfiles/php-fpm/xdebug.ini b/src/dockerfiles/php-fpm/xdebug.ini index b719ba9..6981068 100644 --- a/src/dockerfiles/php-fpm/xdebug.ini +++ b/src/dockerfiles/php-fpm/xdebug.ini @@ -5,8 +5,8 @@ xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.idekey=PHPSTORM -xdebug.remote_autostart=0 -xdebug.remote_enable=0 +xdebug.remote_autostart=1 +xdebug.remote_enable=1 xdebug.cli_color=0 xdebug.profiler_enable=1 xdebug.profiler_enable_trigger=1