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
This commit is contained in:
parent
69aa0b2b6a
commit
3a4c9158d2
|
@ -314,8 +314,7 @@ ARG INSTALL_XDEBUG=false
|
||||||
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
RUN if [ ${INSTALL_XDEBUG} = true ]; then \
|
||||||
# Load the xdebug extension only with phpunit commands
|
# Load the xdebug extension only with phpunit commands
|
||||||
apt-get install -y php${LARADOCK_PHP_VERSION}-xdebug && \
|
apt-get install -y php${LARADOCK_PHP_VERSION}-xdebug && \
|
||||||
sed -i 's/^;//g' /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-xdebug.ini && \
|
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 \
|
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
# ADD for REMOTE debugging
|
# ADD for REMOTE debugging
|
||||||
|
|
Loading…
Reference in New Issue