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

@wordpress/env: Add a debug mode #20326

Closed
noisysocks opened this issue Feb 20, 2020 · 0 comments · Fixed by #20348
Closed

@wordpress/env: Add a debug mode #20326

noisysocks opened this issue Feb 20, 2020 · 0 comments · Fixed by #20348
Assignees
Labels
[Status] In Progress Tracking issues with work in progress [Tool] Env /packages/env [Type] Enhancement A suggestion for improvement.

Comments

@noisysocks
Copy link
Member

noisysocks commented Feb 20, 2020

It would be helpful for debugging issues with wp-env if wp-env supported a verbose or debugging mode.

To do this we can add a --debug flag to wp-env start which, if specified:

  • Outputs the computed config object (the result of initConfig()).
  • Outputs the generated docker-compose.yml file.
  • Outputs the docker-compose commands that are ran.
    • Outputs the STDOUT (and STDERR, though we do this already) of these commands.
  • Outputs the git commands that are ran.
    • Outputs the STDOUT (and STDERR) of these commands.

Optionally, we could make it so that wp-env outputs this log when an error is encountered even if --debug was not specified.

cc. @epiqueras @noahtallen

@noisysocks noisysocks added [Type] Enhancement A suggestion for improvement. Needs Dev Ready for, and needs developer efforts [Tool] Env /packages/env labels Feb 20, 2020
@epiqueras epiqueras removed the Needs Dev Ready for, and needs developer efforts label Feb 21, 2020
@epiqueras epiqueras self-assigned this Feb 21, 2020
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress [Tool] Env /packages/env [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants