Please put put the if block into the #ifdef DEBUG environment too.