2012年1月2日 星期一

Vs2008執行時出現“No Debugging Information”錯誤的解決方法

當我們運行程式 如果跳出這段話
Debugging information for ‘xxx.exe’ cannot be found or does not match.Symbols not loaded

解決方法:
1.選單Project->property->Linker->Debugging, "Generate Debug Info" 拉下選單選擇"Yes(/DEBUG)".OK。

2.如果第一個方法無效就先把程式關掉,之後去目錄下把XXX.suo檔給砍掉,再啟動即可。




如果之後斷點變成三角形驚嘆號 無法DEBUG的話

Tools->Options->Debugging->General ->  "Require source to exactly match..." 將打勾取消