可能的原因如下:
1. 菜單tools->Options->Debugging->General,有個Require source files to exactly match the original version的選項取消;
2. 菜單tools->Options->Debugging->Symbols,然後在Symbol file(.pdb)locations中添加你要調試dll或者程序的pdb文件;
3. C/C++-->General-->Debug Information Format選擇爲 Program Database (Zi);
C/C++-->Optimization 選擇爲Maximize Speed(/O2)
我的原因是第三個