debug error files recording