ADDED: Debug backtrace for errors and logs.