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

后端 未结 18 1533
盖世英雄少女心
盖世英雄少女心 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:31

    The following has worked for me most of the time when I had this problem:

    Find where your projects dll cache is being held (usually in ASP.NET Temprorary Files). Then close VS, do an IISRESET /stop (if you're using IIS), delete all the files in dll cache. Do an IISRESET, start VS, open your project and rebuild it.

提交回复
热议问题