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?


Debug菜单,然后Delete All Breakpoints Ctrl+Shift+F9


The problem is that child breakpoints of your breakpoints persist. Child breakpoints are created (in certain situations) when setting breakpoints during a debug session.

A surefire way of deleting a breakpoint (and children) is to manually look for it in the breakpoint window, and delete it from there. (Select the top node of the entry, hit Delete.)

If you're running an (old) version of Visual Studio that supports VBScript macros, you could run the macro posted here (between debug sessions), to remove child breakpoints. This will make removing breakpoints by clicking the glyph somewhat more effective and predictable, but it continues to be problematic and awkward.


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

在这里输入图像描述


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

在这里输入图像描述


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

链接地址: http://www.djcxy.com/p/95332.html

上一篇: Visual Studio / SUBSYSTEM:POSIX不在2008年出现

下一篇: Visual Studio拒绝忘记断点?