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

后端 未结 7 1514
死守一世寂寞
死守一世寂寞 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条回答
  •  庸人自扰
    2020-12-30 07:34

    Possible solution: I had forgotten that I was previously doing some remote debugging and had set debug symbols to be loaded from a UNC path instead of the Microsoft Symbol Servers.

    To fix this head to: Tools -> Options -> Debugging -> Symbols -> Make sure 'Microsoft Symbol Servers' is checked.

    I also found this issue from creating a new Solution Configuration and not basing it on any existing configuration, such as the DEBUG configuration. That caused Debug Info to be set to none.

    To fix this: Right-click your project -> Properties -> Build -> Make sure your faulty Solution Configuration is set -> click Advanced -> change Debug Info to full.

提交回复
热议问题