[debug tool] enable debug mode if CONFIG.DEBUG == ture