switch debug mode enhanced