断点目前不会被击中。没有符号加载本文档 [英] The Breakpoint Will Not Currently Be Hit. No Symbols Have Been Loaded For This Document

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

问题描述



症状:在一个aspx页面的代码中添加一个断点之后,我在Google中搜索了一个特定的问题,但似乎找不到一个可行的解决方案。网络应用项目中,断点在边缘显示为一个镂空的红色圆圈,感叹号包围在圆形底部的黄色三角形中。当鼠标悬停在断点上时,消息断点不会受到打击,没有为此文档加载任何符号。



注意:我试图打



我尝试过的东西。


  1. 重新编译解决方案中的其他项目。

  2. 检查以确保每个项目和网站中的解决方案设置为任何pc上的调试。

  3. 关闭解决方案并重新启动Visual Studio。

  4. 重新启动IIS。

  5. 重新安装进程(w3wp.exe)。

我一直在试图使用Internet Explorer版本9和Mozilla FireFox版本4.在每种情况下,断点都不会被击中。



欢迎任何想法!谢谢!



安德鲁

解决方案

您是否将程序集部署到GAC?如果没有,请将.pdb文件与.dll文件一起复制,将它们放在同一个bin目录中。调试器应自动拾取符号。


I've Googled this particular problem, but cannot seem to find a working solution.

Symptoms: After adding a breakpoint in the codebehind for an aspx page in a web application project, the breakpoint displays in the margin as a hollowed out red circle with an exclamation point enclosed in a yellow triangle in the bottom right of the circle. When mousing over the breakpoint, the message "The breakpoint will not currently be hit. No symbols have been loaded for this document."

Note: I'm trying to hit the breakpoints by "attaching to [a] process", namely w3wp.exe, located on a remote computer.

Things I have tried.

  1. Recompiling other projects in the solution.
  2. Checking to make sure that the configuration for each of the projects and the website in the solution is set to "Debug" on "any pc".
  3. Closing the solution and restarting Visual Studio.
  4. Restarting IIS.
  5. Reattaching to the process (w3wp.exe).

I've been trying to hit the breakpoints using Internet Explorer version 9 and Mozilla FireFox version 4. In each case, the breakpoints are never hit.

Any ideas are welcome! Thanks!

Andrew

解决方案

Are you deploying your assemblies to the GAC? If not, copy the .pdb file along with the .dll file, placing both in the same bin directory. The debugger should pick up the symbols automatically.

这篇关于断点目前不会被击中。没有符号加载本文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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