编译调试Vs2013 C++ 项目时,在Output窗口可以看到有:
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\msvcp120.dll'. Cannot find or open the PDB file.
'xxx.exe' (Win32): Loaded 'C:\Windows\System32\msvcr120.dll'. Cannot find or open the PDB file.
应该是DLL文件的调试符号文件没有找到。
如图:Tools->Options: Debugging->Symbols:
勾选微软的符号服务器,并设置本地的符号文件缓存目录。
再次F5调试运行,一切OK!