Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport from hel.fi: Log xdebug errors to a file #56

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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