1. 发现用VS2010编译的时候输出窗口总是有如下的类似信息:

  2. 'win32.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
    'win32.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file

打开VS2010:工具--》选项--》》调试--》符号
接下来就是选择Microsoft,然后确认

 接着随便编译一个程序,过程会灰常的慢。

  看到此目录下符号缓存了吗?C:\Users\kjqin\AppData\Local\Temp\SymbolCache 找到这个目录拷贝出来,找个地方存放。接下来就是去掉Microsoft符号服务器,要是不去,每次都要从Microsoft下载很麻烦,已经缓存了,我们就可以利用好这些缓存,至此完美解决。



乐享:知识积累,快乐无限。