Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010: Breakpoints don't work after rebuild

I'm working on a VS2010 Solution containing an ASP.NET Website Project and 8 c# class libraries. All projects are set to compile under .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, modify code in the class library, and start debugging again (which of course rebuilds the libraries which were modified) the debugger ignores the breakpoints.

Has anyone else experienced anything like this? I'm lost and it's extremely frustrating to not be able to debug after making even a single line change and rebuilding.

  • Visual Studio 2010 Ultimate
  • Windows 7 Professional 64-bit
like image 780
KP. Avatar asked Jan 24 '26 05:01

KP.


1 Answers

Be sure that you are killing your webdev server instance. If the breakpoints that are not being hit are in server code a new debug instance won't automatically attach to it.

like image 91
nybbler Avatar answered Jan 25 '26 18:01

nybbler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!