不会命中断点 没有为 vs 网站加载符号 [英] breakpoint will not be hit no symbols have been loaded for vs website

查看:31
本文介绍了不会命中断点 没有为 vs 网站加载符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 vs 2010 网站项目上设置的断点出现主题错误.

I'm getting the subject error for breakpoints set on a vs 2010 website project.

当我在 Debug-->Windows-->Modules 下查看模块窗口时,我发现它无法找到或打开 WebDev.WebHost40.dll 的 PDB 文件——它跳过了所有其他 dll 的加载符号.我试图通过使用工具-->选项-->调试-->符号并检查Microsoft符号服务器来解决这个问题,这修复了模块窗口中无法加载符号消息,但它仍然无法调试并给出相同的错误消息.我还尝试删除临时 Visual Studio 文件,重建项目,关闭并重新打开 Visual Studio,并重新启动机器.还有其他建议吗?我的项目是否可能已损坏,我重新开始了一个新项目?

When I view the modules window under Debug-->Windows-->Modules I see that it cannot find or open the PDB file for WebDev.WebHost40.dll -- it skips loading symbols for all other dlls. I tried to fix this by using Tools-->Options-->Debugging-->Symbols and checking Microsoft Symbol Servers, this fixed the cannot load symbols message in the module window, but it still wont debug and gives the same error message. I've also tried deleting the temp Visual Studio files, rebuilt the project, closed and re-opened visual studio, and also rebooted machine. Any other suggestions? Has my project perhaps been corrupted and I start fresh with a new project?

谢谢

推荐答案

需要检查的一些事项 - 在 Visual Studio 中 - 右键单击​​项目并转到构建选项卡.确保您在调试模式下运行.还要检查调试设置和目标平台是否正常.在此选项卡中还有值得检查的高级构建设置.你提到没有创建 pdb 文件?如果是,请尝试删除它,然后 VS 将重新创建它.如果不是,则构建设置有问题.我会尝试在构建选项卡中进行一些更改,看看效果如何.

A few things to check - in Visual studio - right click the project and go to the build tab. Make sure you are running under debug mode. Also check the debugging settings and target platform are OK. There are also adanced build settings worth checking in this tab. You mention that the pdb file isnt being created? If it is, try deleting it and then it will be recreated by VS. If it isn't there is something wrong with the build settings. I would try some changes in the build tab to see what works.

这篇关于不会命中断点 没有为 vs 网站加载符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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