瀏覽代碼

disable xdebug remote by default

Mahmoud Zalt 8 年之前
父節點
當前提交
2e5d2a743c
共有 4 個文件被更改,包括 17 次插入10 次删除
  1. 7 0
      README.md
  2. 5 4
      php-fpm/xdebug.ini
  3. 0 2
      workspace/Dockerfile
  4. 5 4
      workspace/xdebug.ini

+ 7 - 0
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).
 

+ 5 - 4
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
 

+ 0 - 2
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 && \

+ 5 - 4
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