switch debug