How would you approach debugging an application that is intermittently failing in an Idexcel AWS environment?