Quickly log the error to the WordPress debug.log file with this snippet.
Features
Type elog and hit the tab in any PHP file.
This will expand to error_log(print_r( $, true ));
And you will see the logged content in the /wp-content/debug.log file.
Requirements
Make sure the following constants are set to the WordPress root wp-config.php file.