|
@ -37,7 +37,7 @@ docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_XDEBUG_ON} ${WORKSPACE_X |
|
|
echo "Turn on xdebug: $PHP_VERSION" |
|
|
echo "Turn on xdebug: $PHP_VERSION" |
|
|
|
|
|
|
|
|
if [ -n "${WITH_PROFILER}" ]; then |
|
|
if [ -n "${WITH_PROFILER}" ]; then |
|
|
echo "Profiler enabled" |
|
|
|
|
|
|
|
|
echo "Profiler enabled" |
|
|
if [ "${PHP_VERSION}" = 74 ]; then |
|
|
if [ "${PHP_VERSION}" = 74 ]; then |
|
|
SED_DEBUG_OR_PROFILER_MODE_ON="sed -i 's/^xdebug.profiler_enable=.*/xdebug.profiler_enable=1/g'" |
|
|
SED_DEBUG_OR_PROFILER_MODE_ON="sed -i 's/^xdebug.profiler_enable=.*/xdebug.profiler_enable=1/g'" |
|
|
else |
|
|
else |
|
@ -51,3 +51,8 @@ if [ -n "${SED_DEBUG_OR_PROFILER_MODE_ON}" ]; then |
|
|
docker exec -it "${PHP_FPM_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${PHP_FPM_XDEBUG_CONFIG_PATH}" |
|
|
docker exec -it "${PHP_FPM_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${PHP_FPM_XDEBUG_CONFIG_PATH}" |
|
|
docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${WORKSPACE_XDEBUG_CONFIG_PATH}" |
|
|
docker exec -it "${WORKSPACE_CONTAINER}" bash -c "${SED_DEBUG_OR_PROFILER_MODE_ON} ${WORKSPACE_XDEBUG_CONFIG_PATH}" |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
docker restart "${PHP_FPM_CONTAINER}" |
|
|
|
|
|
|
|
|
|
|
|
echo 'Use this for resolve hostname in your IDE debugger:' |
|
|
|
|
|
echo 'export PHP_IDE_CONFIG="serverName=myproject.cli.local.wpstudio.ru"' |