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

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

    I had this problem today - then found out that it happened because:

    1. Visual Studio 2008 had crashed, leaving Cassini (the intrinsic development web server) running on the original port.

    2. When I reopened my project and "Started" it, it couldnt run on the original port because the old development web server was still running (which I didnt notice)

    3. The pages browsed fine, but no breakpoints got hit because the URL I was using was still pointing to the old development web server port.

提交回复
热议问题