Backport from hel.fi: Log xdebug errors to a file #56
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Running any php operation when xdebug is enabled, but the client is not running fills the stdout with hundreds of
Xdebug: [Step Debug] Could not connect to debugging client. Tried: 172.22.0.1:9003 (through xdebug.client_host/xdebug.client_port).
warnings.We've been using this fix since early 2024, but the hel.fi implementation is a bit different (https://github.com/City-of-Helsinki/drupal-docker-images/blob/main/local/drupal/Dockerfile#L19) and I don't have time to actually test if this works.