41
votes

When debugging, changes to breakpoints are only persisted for that debugging session. Once the debugger detaches the breakpoints are restored to their 'pre-debug' state.

I can appreciate this is sometimes useful, and understand why it defaults this way.

However - does anyone know if there is an option to disable this functionality (in VS2010) such that if I delete/disable/add a breakpoint during debugging the changes will persist the next time I start debugging?

2
@Mitch Wheat: Why would that not be possible? @Micheal Shimmins: I don't know of a setting to do that. Would love that myself.Sani Singh Huttunen
Interesting - I would assume VS could remember that file/line that I added a breakpoint to. How come this isn't possible?Michael Shimmins
+1. I'm pretty sure it used to do what you want by default (some older version). I'd like to know this myself :)Merlyn Morgan-Graham
This is by far one of the most annoying things about visual studio.KingOfHypocrites

2 Answers

9
votes

You can remove the breakpoint whilst debugging by using the Breakpoint Management Window (Debug -> Windows -> Breakpoints).

From there you'll be able to remove the breakpoint in question by right clicking the relevant breakpoint and hitting 'delete'.

-2
votes

During debugging hit F9 on active breakpoint.