Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to delete a breakpoint for good when debugging?

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?

like image 928
Michael Shimmins Avatar asked Jan 03 '11 00:01

Michael Shimmins


People also ask

What does breakpoint do in debugging?

A breakpoint helps to speed up the debugging process in a large program by allowing the execution to continue up to a desired point before debugging begins. This is more efficient than stepping through the code on a line-by-line basis.

How do I delete all Debug points?

select the breakpoint & click on the cross button displayed in the same view. select the breakpoint, right click & select remove. (You can also temporarily disable it & remove all the breakpoints from this menu.) Go to the breakpoint in your file & double-click it.

How do I delete a specific breakpoint in gdb?

With the clear command you can delete breakpoints according to where they are in your program. With the delete command you can delete individual breakpoints, watchpoints, or catchpoints by specifying their breakpoint numbers. It is not necessary to delete a breakpoint to proceed past it.


1 Answers

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'.

like image 94
Jamie Dixon Avatar answered Sep 21 '22 09:09

Jamie Dixon