You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your use case and the problem you are facing
When working with the Behat tests, I'd like to be able to step debug the actual WP CLI + WordPress code which is being run.
Describe the solution you'd like
Add a WP CLI environmental variable to enable Xdebug, which would prepend any WP CLI commands run by Behat with Xdebug environmental variables to enable it.
Activity
swissspidy commentedon May 13, 2025
We do something similar already when running tests with code coverage:
wp-cli-tests/src/Context/FeatureContext.php
Lines 357 to 375 in 2b45c1d
So this could be an easy addition.