Debug for switch