zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

C++ The 出现 转载 Cannot or ... open
2023-09-14 08:59:45 时间
“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 (.pdbs) that cannot be found are the symbol files for the Windows system .dlls, 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 APIs. 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 .”

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


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的解决办法。
C++还在用printf/cout进行Debug?学习一下如何自己写日志库吧(上篇) 日志是出现异常第一个想到的东西,它记录了程序运行过程中所调用的函数,所接受到的值,所执行的行为等等。大家也都看到这篇的标题了,我这个人有一个缺点,就是不太喜欢用别人的东西,如果有能力,我希望自己造,所以今天我们自己来动手撸一个日志库,文章重点讲实现过程,如果需要源码,可以前往github获取[FdogLog,一个轻量级C++日志库,用于日志服务。
C++ STL学习之【vector的使用】 vector 是表示可变大小数组的序列 容器,其使用的是一块 连续 的空间,因为是动态增长的数组,所以 vector 在空间不够时会扩容;vector 优点之一是支持 下标的随机访问,缺点也很明显,头插或中部插入效率很低,这和我们之前学过的 顺序表 性质很像,不过在结构设计上,两者是截然不同的
C++ STL学习之【string类的模拟实现】 string 本质上就是一个专注于存储字符的顺序表,使用起来很方便;但在模拟实现 string 时,有许多值得注意的点,下面就来看看 string 类是如何诞生的吧
C++ STL 学习之【string】 STL 是 C++ 的重要组成部分,由六大部分构成:伪函数、空间配置器、算法、容器、迭代器 和 配接器,其中各种各样的 容器 可以很好的辅助我们写程序,比如今天要介绍的 string,有了它之后,我们对字符串的操作就能变得行云流水