Corrected getProjectResource for debug mode