debug rep_circuit