debug switch