close

 

按下斷點,然後在Debug模式下,會不能停在斷點的地方,其提示 :

The breakpoint will not currently be hit. The source code is different from original version.

意思就是當前的Code和執行文件對應版本Code不同,其解決方式如下 :

 

 

1. rebuild Project.

2. 在你的Project的.cpp或.h隨便敲幾行空白鍵,或按幾下Enter鍵,然後在rebuild.

3. 在Project目錄那邊,你把Debug/Release 的東西全刪了,然後在clean->rebuild.

4. 在斷點處案右鍵,選擇"Location..." 把Allow the source code to be different from the original version "複選框勾上,最後在Rebuild.

 

 

 

 

 

arrow
arrow
    全站熱搜

    Eric 發表在 痞客邦 留言(0) 人氣()