Visual Studio refuses to forget breakpoints?

Visual Studio remembers breakpoints from previous debugging sessions, which is awesome.

However, when I’m debugging, and I clear one of these “old” breakpoints by clicking on it, it’s only temporarily deleted. What I mean is the next time I debug, the breakpoint that I thought I removed is back.

This is super annoying–is there a setting to make it not do this?

visual studio breakpoints

I have a question about setting breakpoints in Visual Studio 2010 Professional. In the struct below, I have an Update() function which, depending on certain conditions, updates the value of it’s memb

Visual Studio breakpoints being moved

I originally used Visual Studio C++ Express, i’ve switched to ultimate and im currently confused as to why the debugger is moving my breakpoints, for example: if(x > y) { int z = x/y; < — brea

Clear all breakpoints in visual studio solution

Is there a shortcut to clear all breakpoints within all projects within a solution in visual studio?

Where are Visual Studio breakpoints saved?

I seem to be getting breakpoints from other programmers when checking out code… Where is the list of breakpoints saved by Visual Studio? In the vbproj file? vbproj.user file? documents and settings?

Programmatically apply / deactivate breakpoints in Visual Studio

Regardless of other options that may achieve the same result (i.e. adding breakpoints by hand), is it possible to programmatically add a breakpoint into the source code of a Visual Studio project? Suc

Breakpoints for C++ in Visual Studio

Breakpoints set in Visual Studio for a C++ project aren’t hit when I run the debugger. When I launch the debugger I get the warning Debugging information for ‘IEXPLORER.EXE’ cannot be found or does

Visual Studio: Cycling through breakpoints

Is there a shortcut to cycle through my breakpoints? I often lose track of the breakpoints when debugging a project. When I finish working with one bug, I have to reset my breakpoints for a new bug th

Why do my breakpoints duplicate in Visual Studio?

I recently started having problems with breakpoints in Visual Studio 2010. When I set a breakpoint and then start debugging, another breakpoint appears on some other line nearby. The screenshots below

How to set conditional breakpoints in Visual Studio?

Is there an easy way to set conditional breakpoints in Visual Studio? If I want to hit a breakpoint only when the value of a variable becomes something, how can I do it?

Visual Studio Breakpoints window: What does the TreeView show?

Usually when using breakpoints in Visual Studio (2008 in this example), I just see a flat list. Sometimes though, I get a tree-view for each breakpoint, as shown below (there are 26 child nodes of the


go to Debug menu then Delete All Breakpoints Ctrl+Shift+F9

The problem is that child breakpoints of your breakpoints persist.
You could run the macro posted here, between debug session to remove child breakpoints, which will make removing breakpoints more effective—but it continues to be problematic and awkward.
A more surefire way of deleting a breakpoint is to manually look for it in the breakpoint window, and delete it from there.

  • Start your debug session with a minimal number of files open, as you debug the unwanted breakpoints will show up and the containing files will open in new tabs.
  • Terminate the debug session and open the breakpoints window (from the debug toolbar, for some reason it is not in the view menu).
  • For each file, enter the name of the file in the search area of the breakpoints window and press enter to filter out the breakpoints by file.
  • You can then click on each breakpoint in the window to see where they are located in the code and delete them if you want. A bit tedious but that the best way I found to get rid of those unwanted ghost breakpoints… Bookmarks and breakpoints management.. Those functions were probably last enhanced sometime during the last century…

Most breakpoints can be removed during debug-session, but some are stuck (probably a bug in Visual Studio).

It you want to remove only the breakpoint which is stuck, then use the “Breakpoints” windows found on the debug menu. There you will probably see that your breakpoint exist multiple times for the same row. Simply rightclick and delete it.

There are some answers here, but in my opinion proposed actions are distractive to use during debugging (I don’t want to lose my focus).

My flow with sticky breakpoints during breakpoints is as follows:

During debug, DISABLE the breakpoint instead of removing it.

Possible ways of disabling a breakpoint:

  • hover with cursor and click the two cycle icon;
  • or use context menu on it;
  • or keyboard short-cut CTRL+F9 (not Shift+CTRL+F9, as it clears all breakpoints).

Later on, during development, I remove a disabled breakpoint when I see one.

PS. It’s also a good practice to remove all breakpoints once in a while.

I was struggling to find the ‘BreakPoints Window’.So here’s the quick way to open it- ctrl+alt+B

Visual Studio refuses to forget breakpoints?

Or you can manually go to ‘Debug->Windows->Breakpoints’ to open it.

Visual Studio refuses to forget breakpoints?

Or you can hit ctrl+shift+F9 to delete all breakpoints at once!