Linux中c程序調試技巧

第一,觀察代碼,尋找問題 第二,手工調試 1,觀察代碼,打印的方式(打印行號)調試 方式一,priintf("[%d]\n",_LINE_); 方式二, 代碼中新增 (宏)  #ifdef DEBUG                            priintf("[%d]\n",_LINE_);                            #endif 編譯:gcc debug
相關文章
相關標籤/搜索