Linux中c程序调试技巧

第一,观察代码,寻找问题 第二,手工调试 1,观察代码,打印的方式(打印行号)调试 方式一,priintf("[%d]\n",_LINE_); 方式二, 代码中新增 (宏)  #ifdef DEBUG                            priintf("[%d]\n",_LINE_);                            #endif 编译:gcc debug
相关文章
相关标签/搜索