2 Commits

Author SHA1 Message Date
7e018bfe6d Update xdebug config 2020-12-09 10:50:11 +01:00
14076d855e Change for php8.0 2020-12-09 08:25:48 +01:00
3 changed files with 14 additions and 13 deletions

View File

@@ -1,17 +1,17 @@
[xdebug] [xdebug]
zend_extension = xdebug.so zend_extension = xdebug.so
xdebug.remote_enable = 1 xdebug.mode = debug
xdebug.remote_host = 172.17.0.1 xdebug.client_host = 172.17.0.1
xdebug.remote_connect_back = 1 # Not safe for production servers xdebug.discover_client_host = yes
xdebug.remote_port = 9000 xdebug.client_port = 9000
xdebug.idekey = VSCODE xdebug.idekey = VSCODE
xdebug.remote_handler = dbgp xdebug.remote_handler = dbgp
xdebug.remote_mode = req xdebug.start_with_request = yes
xdebug.remote_autostart = true
xdebug.remote_log = "/var/log/xdebug/xdebug.log"
xdebug.force_display_errors = On xdebug.force_display_errors = On
xdebug.log = "/var/log/xdebug/xdebug.log"
# Activation du Profiler # Activation du Profiler
xdebug.profiler_enable = 1 xdebug.mode = profile
xdebug.profiler_output_dir = "/var/log/xdebug/" xdebug.output_dir = "/var/log/xdebug/"
xdebug.profiler_output_name = "cachegrind.%s.out" xdebug.profiler_output_name = "cachegrind.%s.out"

View File

@@ -16,7 +16,7 @@ mailcatcher:
- 1080:1080 - 1080:1080
php: php:
build: phpfpm build: phpfpm-8.0
volumes: volumes:
- ~/public:/var/www/html - ~/public:/var/www/html
- ./data/log/xdebug:/var/log/xdebug - ./data/log/xdebug:/var/log/xdebug

View File

@@ -1,4 +1,4 @@
FROM php:7.4-fpm-alpine FROM php:8.0-fpm-alpine
RUN apk add --update --no-cache \ RUN apk add --update --no-cache \
build-base \ build-base \
@@ -9,7 +9,8 @@ RUN apk add --update --no-cache \
freetype-dev \ freetype-dev \
libzip-dev \ libzip-dev \
oniguruma-dev \ oniguruma-dev \
ssmtp ssmtp \
fish
ENV LIBRARY_PATH=/lib:/usr/lib ENV LIBRARY_PATH=/lib:/usr/lib
@@ -24,4 +25,4 @@ RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/i
pdo_mysql \ pdo_mysql \
mbstring \ mbstring \
&& pecl install xdebug \ && pecl install xdebug \
&& docker-php-ext-enable xdebug && docker-php-ext-enable xdebug