add debug for cpp.