add debug mode for c&cpp