Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undo Delete Breakpoint in Visual Studio

Sometimes I accidentally delete a conditional breakpoint that I still wanted by misclicking on it. The following post by the Visual Studio Team suggests that it's possible to undo such a deletion in Visual Studio:

https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/4182673-confirm-before-removing-a-breakpoint-that-has-cond

However I can't find information anywhere on how to actually do so.

like image 457
Mark Langen Avatar asked Mar 12 '26 05:03

Mark Langen


1 Answers

Just tried this in Visual Studio 2017 and ctrl-Z worked to undo the delete breakpoint. Note it seems to only do it for conditional breakpoints, it seems to ignore any intermediate removals of simple breakpoints.

Actions:

delete conditional breakpoint A
add simple breakpoint B
delete simple breakpoint B
ctrl-Z

Result: restores conditional breakpoint A

like image 61
Integrator Avatar answered Mar 13 '26 19:03

Integrator



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!