check file exists on debug template