Skip to content

Commit 2e5d2a7

Browse files
committed
disable xdebug remote by default
1 parent 5635b47 commit 2e5d2a7

4 files changed

Lines changed: 17 additions & 10 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,13 @@ It should be like this:
897897

898898
2 - Re-build the containers `docker-compose build workspace php-fpm`
899899

900+
3 - Open `laradock/workspace/xdebug.ini` and/or `laradock/php-fpm/xdebug.ini` and enable at least the following configs:
901+
902+
```
903+
xdebug.remote_autostart=1
904+
xdebug.remote_enable=1
905+
xdebug.remote_connect_back=1
906+
```
900907

901908
For information on how to configure xDebug with your IDE and work it out, check this [Repository](https://github.com/LarryEitel/laravel-laradock-phpstorm).
902909

php-fpm/xdebug.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini)
22

3-
xdebug.remote_autostart=1
4-
xdebug.remote_enable=1
5-
xdebug.remote_connect_back=1
6-
xdebug.cli_color=1
3+
xdebug.remote_autostart=0
4+
xdebug.remote_enable=0
5+
xdebug.remote_connect_back=0
6+
xdebug.cli_color=0
7+
xdebug.profiler_enable=0
78
xdebug.remote_handler=dbgp
89
xdebug.remote_mode=req
910

workspace/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ COPY ./crontab /var/spool/cron/crontabs
7777
# xDebug:
7878
#####################################
7979

80-
# Check if xDebug needs to be installed
8180
ARG INSTALL_XDEBUG=false
82-
ENV INSTALL_XDEBUG ${INSTALL_XDEBUG}
8381
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
8482
# Load the xdebug extension only with phpunit commands
8583
apt-get update && \

workspace/xdebug.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini)
22

3-
xdebug.remote_autostart=1
4-
xdebug.remote_enable=1
5-
xdebug.remote_connect_back=1
6-
xdebug.cli_color=1
3+
xdebug.remote_autostart=0
4+
xdebug.remote_enable=0
5+
xdebug.remote_connect_back=0
6+
xdebug.cli_color=0
7+
xdebug.profiler_enable=0
78
xdebug.remote_handler=dbgp
89
xdebug.remote_mode=req
910

0 commit comments

Comments
 (0)