【转载】VS2010 C++ Debug 出现“Cannot find or open the...

简介:

使用 VS2010 在 Debug 模式下调试程序的时候经常会遇到如下的输出信息:

?
1
2
3
4
5
6
7
8
“abc.exe”: 已加载“C:\WINDOWS\system32\ntdll.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\kernel32.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\ws2_32.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\advapi32.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\rpcrt4.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\secur32.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\msvcrt.dll”,Cannot find or open the PDB file
“abc.exe”: 已加载“C:\WINDOWS\system32\ws2help.dll”,Cannot find or open the PDB file

这种信息算不上是真正的错误,具体如下,按照MS的Debugger的说法:

   “We apologize if these messages are confusing, but is there any functionality you are expecting that is not available in the debugger? The symbol files (.pdb's) that cannot be found are the symbol files for the Windows system .dll's, and the only reason that you would need these is if you are trying to obtain complete callstacks including the Windows components, or debug into the Windows system API's. If you need the symbols, they are available from the Microsoft Public Symbol servers by checking the "Microsoft Symbol Servers" box under symbol settings (Tools -> Options -> Debugging -> Symbols). 

 照做,把下面Temp的路径改到自己想要的地方,Debug(会比较慢),取消掉MS的那个Symbols,底下的路径不动。

现在只是会解决了,但这Symbols是什么还需学习。

恩,按照MS的说法:

To debug a crash that occurs during a call to a system DLL or to a third-party library, you will often need system .dbg or .pdb files, which contain symbols for Windows DLLs, EXEs, and device drivers .

现在还用不到,等以后再注意一下吧。

目录
相关文章
|
28天前
|
算法 编译器 程序员
深入理解C++编译模式:了解Debug和Release的区别
深入理解C++编译模式:了解Debug和Release的区别
62 2
|
1月前
|
存储 算法 JavaScript
【C++ 泛型编程 入门篇】 C++ 中的泛型算法 STL(sort,find)(二)
【C++ 泛型编程 入门篇】 C++ 中的泛型算法 STL(sort,find)
28 0
|
1月前
|
算法 搜索推荐 程序员
【C++ 泛型编程 入门篇】 C++ 中的泛型算法 STL(sort,find)(一)
【C++ 泛型编程 入门篇】 C++ 中的泛型算法 STL(sort,find)
33 0
|
3月前
|
Web App开发 Ubuntu C++
docker Ubuntu wasm 环境配置 浏览器debug c/c++
docker Ubuntu wasm 环境配置 浏览器debug c/c++
35 0
|
10月前
|
C++
【PAT甲级 - C++题解】1048 Find Coins
【PAT甲级 - C++题解】1048 Find Coins
34 0
|
10月前
|
人工智能 BI C++
【PAT甲级 - C++题解】1068 Find More Coins
【PAT甲级 - C++题解】1068 Find More Coins
62 0
|
C语言
devc++中debug无法正常使用(debug启动后无反应)
devc++中debug无法正常使用(debug启动后无反应)
179 0
|
JSON 编译器 Go
VS CODE一些常见配置操作(快捷键设置、C/C++的debug、代码路径配置)
VS CODE一些常见配置操作(快捷键设置、C/C++的debug、代码路径配置)
547 1
VS CODE一些常见配置操作(快捷键设置、C/C++的debug、代码路径配置)
|
C++
C++Qt | 无法打开源文件:“x64\Debug\moc_xxx.cpp”怎么办。
编译时报错: 1>c1xx : fatal error C1083: 无法打开源文件:“x64\Debug\Res\src\Vlc\include\moc_AVPlayer.cpp”: No such file or directory的解决办法。
333 0
|
监控 安全 测试技术
C++还在用printf/cout进行Debug?学习一下如何自己写日志库吧(上篇)
日志是出现异常第一个想到的东西,它记录了程序运行过程中所调用的函数,所接受到的值,所执行的行为等等。大家也都看到这篇的标题了,我这个人有一个缺点,就是不太喜欢用别人的东西,如果有能力,我希望自己造,所以今天我们自己来动手撸一个日志库,文章重点讲实现过程,如果需要源码,可以前往github获取[FdogLog,一个轻量级C++日志库,用于日志服务。
C++还在用printf/cout进行Debug?学习一下如何自己写日志库吧(上篇)

热门文章

最新文章