Home > Technical > Visual Studio and the breakpoint that won’t go away

Visual Studio and the breakpoint that won’t go away

October 11th, 2012

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.

  1. No comments yet.
  1. No trackbacks yet.