sets debug mode on