ASP.NET: The breakpoint will not currently be hit. No symbols have been loaded for this document

↘锁芯ラ 提交于 2019-12-24 07:54:31

问题


I was having this issue for several days. I finally figured out a fix for ASP.NET programmers, and I figured I would share.

Problem

After setting a breakpoint, and then debugging my breakpoint would turn yellow with an exclamation point. When hovering over the breakpoint it would say "The breakpoint will not currently be hit. No symbols have been loaded for this document.”. I tried cleaning, rebuilding, changing various settings through my project and visual studio. Nothing worked.


回答1:


Solution

I was digging around in the Solution settings. I noticed that under "Web" tab my Start Action setting was set to something other than "Current Page". After setting it back to current page everything worked out.

I hope this solves the issue for other's like me that were exhausted after trying every other suggestion/answer they could find on the internet.




回答2:


The issue only happens to me on ASP.Net Projects

  1. Right Click the Web Project
  2. Select Property Pages
  3. Start Options
  4. Make sure Use current page is selected (as shown below)




回答3:


This happens because your project still has errors, so run the last correct version. Correct your mistakes, surely it is the error "CodeBehind" change it to "CodeFile" and surely the errors disappear, you can return project run without errors.



来源:https://stackoverflow.com/questions/12654755/asp-net-the-breakpoint-will-not-currently-be-hit-no-symbols-have-been-loaded-f

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!