当前不会命中断点。该文档尚未加载任何符号
我在调试模式下构建了程序集并复制到 GAC 中。但程序集未显示在模块窗口中。
当放置断点时,它会显示“当前不会命中断点。尚未为此文档加载任何符号。”
任何人都有线索
I built my assembly in debug mode and copied into GAC. But assembly is not showing in Module window.
When put breakpoint it says "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Anybody have clue
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只是一些简单的尝试 - 您可能已经尝试过。右键单击解决方案资源管理器中的解决方案,单击“清理解决方案”,这将删除与解决方案关联的所有已编译文件和临时文件。
重建解决方案并尝试再次调试。
我还遇到过在解决方案中对多个项目设置断点的问题 - 有些编译为 x86,有些编译为 x64。这是你的设置吗?
Just something simple to try - you may have tried it already. Right click the Solution in solution explorer, click "clean solution", this deletes all the compiled and temporary files associated with a solution.
Do a rebuild of the solution and try to debug again.
I've also had troubles with breakpoints multiple projects in a solution - some compiled as x86, some as x64. Is this your setup?
您可以尝试将 PDB 文件放入 GAC 本身中。或者,您可以在调试时尝试将其从 GAC 中完全删除。不管怎样,我认为 VS 在错误的地方寻找你的符号。
You can try to put you PDB files in the GAC itself. Or, you can just try removing it from the GAC altogether, while debugging. Regardless, I think VS is looking for your symbols in the wrong place.