45

I've a solid break point in Visual Studio 2008 that I can't remove. I can add other break points. Some removed but some don't.

The error is "can't insert breakpoint"

How can this be fixed?


This is very weird. I added a new line above the lines that I couldn't removed and was able to remove them.

Anyone who adds more information on this will get credit.

Bill the Lizard
  • 398,270
  • 210
  • 566
  • 880
Curtis White
  • 6,213
  • 12
  • 59
  • 83

3 Answers3

129

This would happen when the breakpoint gets out of sync from the parse tree.

Go to the Breakpoints pane (Debug, Windows, Breakpoints) and delete it from there.

SLaks
  • 868,454
  • 176
  • 1,908
  • 1,964
17

Sometimes the solution *.suo file can become corrupt. This is where the breakpoints are stored. You can workaround the issue by deleting the suo file.

kthompson
  • 803
  • 6
  • 16
  • 3
    Make sure to close visual studio before you delete the .suo file otherwise it'll recreate it with the same bug once you do close it. – JConstantine Aug 24 '11 at 09:50
10

The shortcut command Control+Shift+F9 deletes all breakpoints.

Jeff
  • 1,362
  • 14
  • 17