When debugging ASP.NET MVC app, breakpoints are not hit

后端 未结 18 1480
盖世英雄少女心
盖世英雄少女心 2020-12-25 11:45

When trying to debug a ASP.NET MVC app, the breakpoints in my controllers arent getting hit. When entering debug mode they just show an empty red circle with a warning trian

18条回答
  •  失恋的感觉
    2020-12-25 12:35

    Things to try:

    1. Clean the Solution, then rebuild it.

    2. If that doesn't work, close the solution, delete the bin and obj folders, and rebuild.

    3. If that doesn't work, restart the IDE after doing step #2.
    4. If you're debugging an ASP.NET project hosted by IIS, make sure you're attached to the correct process (w3wp.exe).

提交回复
热议问题