Clear debug function