|
@ -31,7 +31,14 @@ xdebug_start () |
|
|
|
|
|
|
|
|
# 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" |
|
|
MODE_DEBUG_CMD="sed -i 's/^xdebug.mode.*/xdebug.mode=debug/g' /usr/local/etc/php/conf.d/xdebug.ini" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ -n "${WITH_PROFILER}" ]]; then |
|
|
|
|
|
XDEBUG_MODE='profile' |
|
|
|
|
|
else |
|
|
|
|
|
XDEBUG_MODE='debug' |
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
MODE_DEBUG_CMD="sed -i 's/^xdebug.mode.*/xdebug.mode=${XDEBUG_MODE}/g' /usr/local/etc/php/conf.d/xdebug.ini" |
|
|
|
|
|
|
|
|
docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}" |
|
|
docker exec -it $PHP_FPM_CONTAINER bash -c "${ON_CMD}" |
|
|
docker exec -it $PHP_FPM_CONTAINER bash -c "${MODE_DEBUG_CMD}" |
|
|
docker exec -it $PHP_FPM_CONTAINER bash -c "${MODE_DEBUG_CMD}" |
|
|