Does anybody know of the proper way to debug objects from within hook_cron? I'm trying to set up a task that periodically deletes backups from my private folder, but I can't properly debug arrays that I define in my module. I've tried both the object log and devel debug log modules, but neither of them are properly working for me at the moment, so I feel completely stuck on how to access the information I need.
I've tried running kint() directly, but I'm assuming that doesn't work because it's not running on a page load but in the middle of the cron task.
EDIT: Ended up solving this particular piece of the issue, but am having errors doing some of the deletion as addressed in another issue.