only prep debug when debug enabled