现在的位置: 首页 > 综合 > 正文

vs2010调试错误问题

2013年09月15日 ⁄ 综合 ⁄ 共 835字 ⁄ 字号 评论关闭

问题是:

VS2010开发环境,源程序正确,也生成了.exe,却不能顺利运行。运行后情况如下

“陈森.exe”: 已加载“H:\vs2010\练习\陈森\Debug\陈森.exe”,已加载符号。
“陈森.exe”: 已加载“C:\Windows\System32\ntdll.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\kernel32.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\KernelBase.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\user32.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\gdi32.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\lpk.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\usp10.dll”,Cannot find or open the PDB file
“陈森.exe”: 已加载“C:\Windows\System32\msvcrt.dll”,Cannot find or open the PDB file
 
解决方法:
工具--》选项--》》调试--》符号

接下来就是勾选Microsoft ,然后确认,重新编写一个程序,什么也可以,看看是不是好了?

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

抱歉!评论已关闭.