Add xdebug to the php container.

This commit is contained in:
Dave Smith-Hayes 2024-11-26 08:59:28 -05:00
parent ca4be5e3ec
commit 7fc7b95ccd
2 changed files with 11 additions and 0 deletions

View File

@ -16,6 +16,11 @@ RUN docker-php-ext-install pdo \
zip \ zip \
dom dom
## Set up the Development Environment
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug
COPY ./dev/php/config/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
RUN curl -sS https://getcomposer.org/installer | \ RUN curl -sS https://getcomposer.org/installer | \
php -- --install-dir=/usr/local/bin --filename=composer php -- --install-dir=/usr/local/bin --filename=composer

View File

@ -0,0 +1,6 @@
[xdebug]
zend_extension=xdebug
xdebug.mode=develop,debug
xdebug.client_host=host.docker.internal
xdebug.start_with_request=yes