set debug mode