跳到主要內容

發表文章

目前顯示的是有「Code Blocks」標籤的文章

在Code::Blocks上使用GDB

Project's Build Option -> Compiler選項 Produce debugging symbols(-g) (打勾) Strip all symbols from binary(-s) (不要勾) 插入Break point 左邊 "Watches" Tag -> right click "Add watches" -> 輸入 variable name re-build press "F8" into debug mode press "step into" to see the variable content step by step