rm debugging code