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

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

    None of these answers helped me. Some of my breakpoints were hit, and some not. But I discovered the problem in my case.

    If there is a file at the exact same virtual location with the exact same name as the URL you are trying to debug, the file will be served to the browser automatically by IIS and the breakpoint will not be hit because no MVC code actually runs.

提交回复
热议问题