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