Easy switch of debug mode