可能的原因如下:
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)