Visual Studio breakpoints not being hit

后端 未结 19 2144
再見小時候
再見小時候 2020-12-04 18:59

I\'m working with an ASP.NET MVC project that seems to be having some issues when attaching to the IIS process (w3wp.exe). I\'m running the solution and IIS 8.5 on my own lo

19条回答
  •  囚心锁ツ
    2020-12-04 19:32

    I know this is not the OPs issue, but I had this happen on a project. The solution had multiple MVC projects and the wrong project was set as startup.

    I had also set the configuration of the project(s) to just start process/debugger and not open a new browser window.

    Visual Studio Project Properties

    So on the surface it looks as if the debugger is starting up, but it does so for the wrong process. So check that and keep in mind that you can attach to multiple processes also.

    Silly mistake that left me scratching my head for about 30 minutes.

    Attach to both processes

提交回复
热议问题