Switch debug flag