From 7fc7b95ccd7cfa70c73d0f3689a9e4076dde8a28 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Tue, 26 Nov 2024 08:59:28 -0500 Subject: [PATCH] Add xdebug to the php container. --- dev/php/Dockerfile | 5 +++++ dev/php/config/xdebug.ini | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 dev/php/config/xdebug.ini diff --git a/dev/php/Dockerfile b/dev/php/Dockerfile index 9695a7c..b9e0071 100644 --- a/dev/php/Dockerfile +++ b/dev/php/Dockerfile @@ -16,6 +16,11 @@ RUN docker-php-ext-install pdo \ zip \ 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 | \ php -- --install-dir=/usr/local/bin --filename=composer diff --git a/dev/php/config/xdebug.ini b/dev/php/config/xdebug.ini new file mode 100644 index 0000000..db5db76 --- /dev/null +++ b/dev/php/config/xdebug.ini @@ -0,0 +1,6 @@ +[xdebug] +zend_extension=xdebug +xdebug.mode=develop,debug +xdebug.client_host=host.docker.internal +xdebug.start_with_request=yes +