Web API in MVC Project isn't hitting breakpoints (“symbols not loaded”)

后端 未结 7 1503
死守一世寂寞
死守一世寂寞 2020-12-30 07:05

I have an ASP.NET MVC project, with an ASP.NET web api defined as an area in this project. So the structure is the following:

MVC Web
   Controllers
   View         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-30 07:44

    Just had this issue myself and was tearing my hair out for about an hour until I realised Visual Studio had mysteriously switched to run the project in 'Release' mode. Switching back to 'Debug' mode and rebuilding sorted me out.

    Probably a very niche answer to this problem, but hopefully this helps somebody.

提交回复
热议问题