Commit 2e5d2a74 authored by Mahmoud Zalt's avatar Mahmoud Zalt

disable xdebug remote by default

parent 5635b47c
...@@ -897,6 +897,13 @@ It should be like this: ...@@ -897,6 +897,13 @@ It should be like this:
2 - Re-build the containers `docker-compose build workspace php-fpm` 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). For information on how to configure xDebug with your IDE and work it out, check this [Repository](https://github.com/LarryEitel/laravel-laradock-phpstorm).
......
; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) ; 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_autostart=0
xdebug.remote_enable=1 xdebug.remote_enable=0
xdebug.remote_connect_back=1 xdebug.remote_connect_back=0
xdebug.cli_color=1 xdebug.cli_color=0
xdebug.profiler_enable=0
xdebug.remote_handler=dbgp xdebug.remote_handler=dbgp
xdebug.remote_mode=req xdebug.remote_mode=req
......
...@@ -77,9 +77,7 @@ COPY ./crontab /var/spool/cron/crontabs ...@@ -77,9 +77,7 @@ COPY ./crontab /var/spool/cron/crontabs
# xDebug: # xDebug:
##################################### #####################################
# Check if xDebug needs to be installed
ARG INSTALL_XDEBUG=false ARG INSTALL_XDEBUG=false
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
RUN if [ ${INSTALL_XDEBUG} = true ]; then \ RUN if [ ${INSTALL_XDEBUG} = true ]; then \
# Load the xdebug extension only with phpunit commands # Load the xdebug extension only with phpunit commands
apt-get update && \ apt-get update && \
......
; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini) ; 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_autostart=0
xdebug.remote_enable=1 xdebug.remote_enable=0
xdebug.remote_connect_back=1 xdebug.remote_connect_back=0
xdebug.cli_color=1 xdebug.cli_color=0
xdebug.profiler_enable=0
xdebug.remote_handler=dbgp xdebug.remote_handler=dbgp
xdebug.remote_mode=req xdebug.remote_mode=req
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment