I am trying to debug a plugin , specifically a scheduled job that is tied in with a hook.
wp_schedule_event(time(), 'daily', 'wp_refresh_asins');
add_action('wp_refresh_asins', 'refreshAsins');
When refreshAsins runs, I want to see some output to verify settings, functionality etc as part of the development process.
How can I create output and where does it go? I have tried echo and trigger_error() but can't find output generated by either.
What is the correct way to do this in the WordPress environment?