Breakpoint Failed to Bind - Visual Studio 2015

后端 未结 24 900
后悔当初
后悔当初 2020-11-28 07:47

I just upgraded from Visual Studio 2013 to 2015 and now I am having trouble with breakpoints.

It\'s a hit or a miss where break points will actually work and if I se

相关标签:
24条回答
  • 2020-11-28 08:26

    In my case, there was a new web.config file created after I use Profiler. Restoring web.config to the previous version, resolved this issue. It was a VS2015 C# web application.

    0 讨论(0)
  • 2020-11-28 08:29

    VS breakpoints cannot bind on async methods.

    I had an App Dynamics agent installed that caused this. Remove that and you are good to go.

    0 讨论(0)
  • 2020-11-28 08:31

    While this is a much later build (VS2017) I had this issue with C# projects. Tried cleaning, rebuilding, restarting visual studio, etc.

    What fixed it was closing Visual Studio and deleting the .vs folder, which is a hidden folder located in the solution directory. Deleting the .vs folder should not cause you any problems, although you will need to reset your startup project.

    0 讨论(0)
  • 2020-11-28 08:33

    This may seem trivial, but after a lot of headscratching with the same issues as you mention, I found out that my build was set to "release" instead of "debug" when I tried debugging.. re-building the solution for "debug" fixed it, and I could set breakpoints as normal

    0 讨论(0)
  • 2020-11-28 08:33

    I didn't change the 'optimize' setting, but based on other answers here, I

    1. Set Solution Explorer to Show All Files for the project
    2. Deleted the hidden bin and debug folders
    3. Performed a 'Clean' on the project
    4. Performed 'Rebuild' on the project

    So far this has fixed it for me. Seems like updating to VS2015 Update 2 has borked a few things on my system.

    0 讨论(0)
  • 2020-11-28 08:34

    In case you are publishing your web-application check that Configuration is set to Debug(by default in debug configuration is set such that code not is optimized and symbol table is fully created).

    0 讨论(0)
提交回复
热议问题