Output debug info before failing error