Visual Studio 2010“无法找到或打开 PDB 文件" [英] Visual Studio 2010 "Cannot find or open the PDB file"

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

问题描述

我尝试在 Visual Studio 10 中调试程序,但遇到断点问题.我将与 *.dll 文件对应的 *.pdb 文件放在同一目录中.但是在检查模块时,我看到每个 DLL 文件都被签名为 Cannot find or open the PDB file.

I try to debug a program in Visual Studio 10, but I have a problem with breakpoints. I put *.pdb files corresponding to the *.dll files to the same directory. But while checking modules, I see that each DLL file is signed as Cannot find or open the PDB file.

我该如何解决这个问题?如何检查 *.pdb 文件的预期位置?

How can I fix this problem? How can I check where *.pdb files are expected to be located?

推荐答案

模块 (Ctrl-D, M) 是整理正在发生的事情的好地方,因此您就在正确的区域.

The modules (Ctrl-D, M) is a good place to sort out whats going on so you're in the right area.

右键单击您希望找到 pdb 的模块/dll,然后选择 Symbol Load Information

Right-click the module/dll you expected the pdb to be found for and select Symbol Load Information

它应该在与您的 dll 相同的目录中查找,如果它找到 pdb 将加载它或告诉您 pdb 文件与 dll 不匹配.

It should look in the same directory as your dll to begin with and if it finds the pdb will either load it or tell you that the pdb file doesnt match the dll.

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

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