Skip to content

Commit

Permalink
Merge pull request #836 from blazeyo/add-xdebug-log
Browse files Browse the repository at this point in the history
Added a way to enable xdebug's remote_log with an environment variable.
  • Loading branch information
Schnitzel committed Jan 14, 2019
2 parents 3c5cbe6 + 31dbfbb commit d059656
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion images/php/fpm/entrypoints/60-php-xdebug.sh
Expand Up @@ -39,5 +39,8 @@ if [ ${XDEBUG_ENABLE+x} ]; then

# Add the found remote_host to xdebug.ini
echo -e "\n\nxdebug.remote_host=${DOCKERHOST}" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
fi

if [ ${XDEBUG_LOG+x} ]; then
echo -e "\n\nxdebug.remote_log=/tmp/xdebug.log" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
fi
fi

0 comments on commit d059656

Please sign in to comment.