找不到或打开PDB文件 [英] Cannot find or open the PDB file

查看:117
本文介绍了找不到或打开PDB文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有在VS 2008中完美运行的C ++代码.在VS2010中进行编译时,没有错误进行编译,但是在尝试运行时得到以下错误:

Hi,
I have C++ code that works in VS 2008 perfectly. when compile that in VS2010, compiles with no errors but when try run get below errors:

''LineFilterTick.exe'': Loaded ''C:\Windows\SysWOW64\ntdll.dll'', Cannot find or open the PDB file
''LineFilterTick.exe'': Loaded ''C:\Windows\SysWOW64\kernel32.dll'', Cannot find or open the PDB file
''LineFilterTick.exe'': Loaded ''C:\Windows\SysWOW64\KernelBase.dll'', Cannot find or open the PDB file
''LineFilterTick.exe'': Loaded ''C:\Windows\SysWOW64\msvcp100d.dll'', Symbols loaded.
''LineFilterTick.exe'': Loaded ''C:\Windows\SysWOW64\msvcr100d.dll'', Symbols loaded.
The program ''[8664] LineFilterTick.exe: Native'' has exited with code 0 (0x0).


如何解决呢?
问候,


How to solve this?
Regards,

推荐答案

除非您进行内核调试,否则不需要ntdll.dll,kernel32.dll等符号信息.缺少符号是收到警告(不是错误)的原因-无法找到或打开PDB文件".

您可以通过转到工具->选项->调试->符号来获得大多数这些DLL的调试符号.在此处检查 Microsoft Symbol Server ,然后在缓存符号中输入要在其中缓存这些符号的空目录的路径.符号将下载到所选目录中(需要一些时间).请注意,通常您不需要加载这些符号.但是,我认为,您的机器上应该有符号,以防您需要它们进行调试或分析故障转储.

-这是相应的MSDN来源:如何:使用符号服务器[ 使用符号进行调试的知识[ ^ ]
Unless you do kernel debugging, you do not need ntdll.dll, kernel32.dll, etc symbol information. The absent symbols are the reason that you get the warning (not the error) - "Cannot find or open the PDB file".

You can get debugging symbols for most of these DLLs by going to Tools->Options->Debugging->Symbols. Here check Microsoft Symbol Server and in the Cache symbols enter a path to an empty directory where you want to cache these symbols. Symbols will be downloaded to directory chosen (takes some time). Note, that usually you don''t need these symbols loaded. But, in my opinion, you should have symbols on your machine in case you will need them for debugging, or to analyze crash dump.

- This is corresponding MSDN source: How to: Use a Symbol Server[^]

- And, this is what you should know for Debugging with symbols[^]


这篇关于找不到或打开PDB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆