I'm writing a one-off script to update some posts in the database. Whenever there is an error in my script, it fails silently.
I've followed the suggestions in this Github issue without success:
https://github.com/wp-cli/wp-cli/issues/706
I've also tried running my script with debug set to true:
wp --debug eval-file my-script.php
And I've tried setting WP_DEBUG
to true in wp-cli.yaml
:
# Subcommand defaults (e.g. `wp eval-file config`)
eval-file config:
extra-php: |
define( 'WP_DEBUG', true );
Still, deathly silence.