Visual Studio 2010: breakpoints do not work after recovery

I am working on a VS2010 solution containing an ASP.NET Website project and 8 cool class libraries. All projects are configured to compile in .NET 3.5

When I set a breakpoint somewhere in the class libraries, the debugger breaks correctly and everything is fine. If I then stop debugging, change the code in the class library and start debugging again (which, of course, rebuilds the libraries that were changed), the debugger ignores breakpoints.

Has anyone else experienced this? I am lost, and I am very disappointed that I could not debug after I even performed a one-line change and recovery.

  • Visual Studio 2010 Ultimate
  • Windows 7 Professional 64-bit
+3
source share
2 answers

Make sure you kill the webdev server instance. If breakpoints that do not fall into the server code, a new instance of debugging will not be automatically attached to it.

+3
source

I came across this problem - the only way to fix it is to recreate the solution by importing the existing project into a new solution. Not an ideal workaround, but better than an all-day search and no better!

0
source

Source: https://habr.com/ru/post/1787798/


All Articles