edit debug mode