diff --git a/README.md b/README.md index 91a35a2..ff36c34 100644 --- a/README.md +++ b/README.md @@ -897,6 +897,13 @@ It should be like this: 2 - Re-build the containers `docker-compose build workspace php-fpm` +3 - Open `laradock/workspace/xdebug.ini` and/or `laradock/php-fpm/xdebug.ini` and enable at least the following configs: + +``` +xdebug.remote_autostart=1 +xdebug.remote_enable=1 +xdebug.remote_connect_back=1 +``` For information on how to configure xDebug with your IDE and work it out, check this [Repository](https://github.com/LarryEitel/laravel-laradock-phpstorm). diff --git a/php-fpm/xdebug.ini b/php-fpm/xdebug.ini index 06eef4a..dfe2f10 100644 --- a/php-fpm/xdebug.ini +++ b/php-fpm/xdebug.ini @@ -1,9 +1,10 @@ ; 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_autostart=1 -xdebug.remote_enable=1 -xdebug.remote_connect_back=1 -xdebug.cli_color=1 +xdebug.remote_autostart=0 +xdebug.remote_enable=0 +xdebug.remote_connect_back=0 +xdebug.cli_color=0 +xdebug.profiler_enable=0 xdebug.remote_handler=dbgp xdebug.remote_mode=req diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 46058bc..0296fa9 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -77,9 +77,7 @@ COPY ./crontab /var/spool/cron/crontabs # xDebug: ##################################### -# Check if xDebug needs to be installed ARG INSTALL_XDEBUG=false -ENV INSTALL_XDEBUG ${INSTALL_XDEBUG} RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # Load the xdebug extension only with phpunit commands apt-get update && \ diff --git a/workspace/xdebug.ini b/workspace/xdebug.ini index 06eef4a..dfe2f10 100644 --- a/workspace/xdebug.ini +++ b/workspace/xdebug.ini @@ -1,9 +1,10 @@ ; 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_autostart=1 -xdebug.remote_enable=1 -xdebug.remote_connect_back=1 -xdebug.cli_color=1 +xdebug.remote_autostart=0 +xdebug.remote_enable=0 +xdebug.remote_connect_back=0 +xdebug.cli_color=0 +xdebug.profiler_enable=0 xdebug.remote_handler=dbgp xdebug.remote_mode=req