Improve error reporting for CLI

I added the option for \Debug::backtrace to accept the backtrace to dump, which might help with that pesky thing where it reports bootstrap.php all the time