--debug (WP-CLI)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

The --debug option displays debugging information during the execution of the WP-CLI command. When the respective WP-CLI command has finished, you will return to the normal terminal screen. I have the impression that this option is not suitable if you want to be kept globally informed about the progress during the execution of, for example, a large script.

You can specify which group of debug information it concerns. I think you'll see that automatically if you use this option with no value first. The values I saw passing by so quickly (interrupt execution with Ctrl-C, otherwise it will probably go too fast):

  • bootstrap
  • commands
  • hooks.

In Sep. 2022, I didn't find any of these options useful to make the execution of WP-CLI commands just a bit more intelligible.

Examples

# Toon alle debug-informatie
########################################
#
wp option list --fields=option_name --debug


# Toon alleen commands-debug-informatie
########################################
#
wp option list --fields=option_name --debug=commands

See also

`