Visual Studio and the breakpoint that won’t go away
For the past couple of years I’ve had a breakpoint in a piece of code that wouldn’t go away. From time to time I’d run the offending piece of code in the debugger and hit the breakpoint when I didn’t want to.
The project was originally in Visual Studio 2008 and for a few months I lived with the debugger breaking at a certain point in the code. Once the breakpoint was hit I could remove the breakpoint by clicking on the source line and pressing F9. However, if I stopped and restarted the debugger, the breakpoint reappeared.
Recently I upgraded the project to Visual Studio 2010 and the breakpoint still refused to go away permanently. Turns out all I had to do to get rid of the breakpoint permanently was go to the Debug menu and click the Delete All Breakpoints option. Now the project is free of all unwanted breakpoints.