-
Notifications
You must be signed in to change notification settings - Fork 27
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
Missing Xdebug from phpunit and other images #89
Comments
Could we update all images to install Xdebug but leave it disabled by default? Or install and enable Xdebug only for |
Hey @kasparsd, xDebug is currently installed and disabled by default. WordPress Core actually generates a code coverage report using them and submits it to Codecov.io. To boot the Docker containers with xDebug, a few environment variables need be set:
Could you give this a try, or confirm that you've tried this and are experiencing issues? |
Thanks! I'm not sure how I missed the wpdev-docker-images/entrypoint/common.sh Lines 4 to 11 in 2106858
So we just need to update |
It is currently impossible to generate code coverage reports using the
phpunit
or any other images containing PHP that are generated by this repository.@wordpress/env
attempts to enable Xdebug support here:https://github.com/WordPress/gutenberg/blob/d5915916abc45e6682f4bdb70888aa41e98aa395/packages/env/lib/init-config.js#L84-L90
but it doesn't do it for images that could actually be used for running CLI tasks such as
phpunit
,tests
,cli
and others as reported here WordPress/gutenberg#42286The text was updated successfully, but these errors were encountered: