From 3a4c9158d26ef8a13bf5040762095a815bbc8481 Mon Sep 17 00:00:00 2001 From: Marco Manieri Date: Mon, 22 Jul 2019 16:31:46 +0200 Subject: [PATCH] Cannot load Xdebug - it was already loaded (#2123) zend_extension=xdebug.so is already in /etc/php/7.2/cli/conf.d/20-xdebug.ini rediefing the alias causes the was already loaded notice. also /var/www/vendor/bin/phpunit instead of ./vendor/bin/phpunit breaks the alias when vendor directory is not directly under the root app directory --- workspace/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 3a07eee..bdc0349 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -314,8 +314,7 @@ ARG INSTALL_XDEBUG=false RUN if [ ${INSTALL_XDEBUG} = true ]; then \ # Load the xdebug extension only with phpunit commands apt-get install -y php${LARADOCK_PHP_VERSION}-xdebug && \ - sed -i 's/^;//g' /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xdebug.ini && \ - echo "alias phpunit='php -dzend_extension=xdebug.so /var/www/vendor/bin/phpunit'" >> ~/.bashrc \ + sed -i 's/^;//g' /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xdebug.ini \ ;fi # ADD for REMOTE debugging