switch from debug mode to normal mode