Skip to content

Commit

Permalink
Merge pull request #56 from tuutti/main
Browse files Browse the repository at this point in the history
Backport from hel.fi: Log xdebug errors to a file
  • Loading branch information
back-2-95 authored Oct 20, 2024
2 parents e9f15ae + 06090cd commit 0288f60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions php/files/entrypoints/15-xdebug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ if [ "$XDEBUG_ENABLE" = "true" ]; then
echo "- Already enabled..."
else
sudo mv "$XDEBUG_INI".disabled "$XDEBUG_INI"
sudo -u root touch /tmp/xdebug.log && sudo chmod 666 /tmp/xdebug.log
fi
else
echo "- Start with Xdebug disabled. Add XDEBUG_ENABLE=true ENV variable to enable it."
Expand Down
1 change: 1 addition & 0 deletions php/files/etc/php/conf.d/xdebug.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ zend_extension=xdebug.so
xdebug.mode=debug
xdebug.client_host=host.docker.internal
xdebug.idekey=PHPSTORM
xdebug.log=/tmp/xdebug.log

0 comments on commit 0288f60

Please sign in to comment.