update debug mode