Compare commits
2 Commits
b1b2e1d501
...
fd7c8b9ac1
Author | SHA1 | Date | |
---|---|---|---|
fd7c8b9ac1 | |||
2049580005 |
@ -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
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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
Normal file
3
dockerfiles/workspace/xdebug3.ini
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
xdebug.mode=debug
|
||||||
|
xdebug.client_host=172.18.0.1
|
||||||
|
xdebug.start_with_request=yes
|
Reference in New Issue
Block a user