2 Commits

  1. 10
      bash/xdebug-start.sh
  2. 4
      dockerfiles/php-fpm/xdebug2/xdebug.sh
  3. 4
      dockerfiles/php-fpm/xdebug3/xdebug.sh
  4. 7
      dockerfiles/workspace/workspace81.Dockerfile
  5. 3
      dockerfiles/workspace/xdebug3.ini

10
bash/xdebug-start.sh

@ -8,9 +8,19 @@ if [[ -z "${PHP_VERSION}" ]]; then PHP_VERSION=81; fi
POSSIBLE_XDEBUG_VERSION=xdebug2 POSSIBLE_XDEBUG_VERSION=xdebug2
echo "Choice PHP_VERSION: $PHP_VERSION"
if [[ $PHP_VERSION -ge 81 ]]; then if [[ $PHP_VERSION -ge 81 ]]; then
POSSIBLE_XDEBUG_VERSION=xdebug3 POSSIBLE_XDEBUG_VERSION=xdebug3
fi fi
echo "Choice POSSIBLE_XDEBUG_VERSION: $POSSIBLE_XDEBUG_VERSION"
echo
${DIR}/dockerfiles/php-fpm/${POSSIBLE_XDEBUG_VERSION}/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER} ${DIR}/dockerfiles/php-fpm/${POSSIBLE_XDEBUG_VERSION}/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER}
echo
${DIR}/dockerfiles/workspace/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER} ${DIR}/dockerfiles/workspace/xdebug.sh start ${PHP_VERSION} ${WITH_PROFILER}
echo

4
dockerfiles/php-fpm/xdebug2/xdebug.sh

@ -27,7 +27,7 @@ xdebug_status ()
xdebug_start () xdebug_start ()
{ {
echo 'Start xDebug'
echo 'Start xDebug2'
# And uncomment line with xdebug extension, thus enabling it # And uncomment line with xdebug extension, thus enabling it
ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
@ -48,7 +48,7 @@ xdebug_start ()
xdebug_stop () xdebug_stop ()
{ {
echo 'Stop xDebug'
echo 'Stop xDebug2'
# Comment out xdebug extension line # Comment out xdebug extension line
OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"

4
dockerfiles/php-fpm/xdebug3/xdebug.sh

@ -27,7 +27,7 @@ xdebug_status ()
xdebug_start () xdebug_start ()
{ {
echo 'Start xDebug'
echo 'Start xDebug3'
# And uncomment line with xdebug extension, thus enabling it # And uncomment line with xdebug extension, thus enabling it
ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" ON_CMD="sed -i 's/^;zend_extension=/zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
@ -42,7 +42,7 @@ xdebug_start ()
xdebug_stop () xdebug_stop ()
{ {
echo 'Stop xDebug'
echo 'Stop xDebug3'
# Comment out xdebug extension line # Comment out xdebug extension line
OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini" OFF_CMD="sed -i 's/^zend_extension=/;zend_extension=/g' /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"

7
dockerfiles/workspace/workspace81.Dockerfile

@ -70,6 +70,13 @@ ENV COMPOSER_VERSION ${COMPOSER_VERSION}
RUN composer self-update --${COMPOSER_VERSION} RUN composer self-update --${COMPOSER_VERSION}
########################################################################### ###########################################################################
# xDebug (termporary):
###########################################################################
# Copy xdebug configuration for remote debugging
COPY ./xdebug3.ini /etc/php/${PHP_VERSION}/cli/conf.d/xdebug.ini
###########################################################################
# Laradock Aliases # Laradock Aliases
########################################################################### ###########################################################################

3
dockerfiles/workspace/xdebug3.ini

@ -0,0 +1,3 @@
xdebug.mode=debug
xdebug.client_host=172.18.0.1
xdebug.start_with_request=yes
Loading…
Cancel
Save