debug protocol