83

When I am at a breakpoint and if I want to ignore all the rest of breakpoints and move on, what shortcut should I use?

kaya3
  • 47,440
  • 4
  • 68
  • 97
pencilCake
  • 51,323
  • 85
  • 226
  • 363
  • 11
    Really good question but I can't see a single answer that really answers the question, i.e. skipping all breakpoints, **not** disabling them. – Andreas Mar 28 '18 at 06:17
  • 1
    @mrt I agree. Place to vote: https://visualstudio.uservoice.com/forums/121579-visual-studio-ide/suggestions/13276296-continue-but-temporarily-ignore-active-breakpoints – nawfal May 17 '18 at 05:10
  • 1
    Indeed, after discovering Godot allowed it, I searched for this in VS but it seems the only alternative not to lose your breakpoints setup is to Detach process and Reattach later... not ideal. By the way, the uservoice page is no longer available. All I could find was this: https://developercommunity.visualstudio.com/t/please-add-a-feature-to-disable-all-breakpoints-to/926795 and the replies from both bot and human don't really make sense (they talk about it as if it was a bug, not a suggestion). Finally I found https://docs.wholetomato.com/default.asp?W836 from Visual Assist X, but it's paid. – hsandt Mar 17 '21 at 19:50

6 Answers6

99

You can select "Disable All Breakpoints" from the Debug menu.

This and then continue with F5.

You could set this up as a keyboard shortcut under Tools/Options/Keyboard.

xav
  • 5,452
  • 7
  • 48
  • 57
Matt
  • 3,664
  • 3
  • 33
  • 39
  • 2
    thanks! It was useful and quick to implement. You can also assign a shortcut for "Enable All Breakpoints" I have used CTRL + 7 for disabling and CTRL + 8 for enabling. Most of the shortcuts are reserved already. – pencilCake Dec 03 '09 at 09:29
  • 7
    You need to set Debug.DisableAllBreakpoints or Debug.EnableAllBreakpoints – Rohit Jul 25 '11 at 08:41
  • 1
    In Visual Studio 2012 it's slightly different. You can set up your own breakpoints by going to Tools -> Options -> Environment -> Keyboard. – bstrong Mar 10 '15 at 18:35
  • 2
    If you have Resharper and struggled to find 2 free shortcut keys for Disable/Enable All Breakpoints, I've used [[ Ctrl + Shift + ` ]] for Disable , [[ Ctrl + Alt + ` ]] for Enable – Francis Aug 16 '16 at 17:47
  • Really strange that they went with separate shortcuts for enable and disable instead of just making a single one for toggling them all on/off... – matmo Mar 31 '20 at 23:48
  • Great, I choose Alt+B to enable and Shift+Alt+B to disable. Thanks! – Rodrigo Balibrera Oct 14 '22 at 17:17
18

Well, you can:

  1. delete all breakpoints using Ctrl+Shift+F9
  2. disable all breakpoints from the ->Debug menu.

Disabling breakpoints does not have a shortcut defined, but you define your own in ->Tools->Options menu under Environment->Keyboard. Also Shift+F5 stops debugging altogether.

xav
  • 5,452
  • 7
  • 48
  • 57
Klaus Byskov Pedersen
  • 117,245
  • 29
  • 183
  • 222
9

Ctrl+Shift+F9 will delete them all.

To disable all breakpoints - either you do it from the menu - or you go to option -> environment -> keyboard, and create a shortcut there.

xav
  • 5,452
  • 7
  • 48
  • 57
Dani
  • 14,639
  • 11
  • 62
  • 110
6

Enabled / Disabled just one break point at a time with Ctrl + F9.

Though the cursor has to be on the given line of code.

Archmede
  • 1,592
  • 2
  • 20
  • 37
Antoine Meltzheim
  • 9,579
  • 6
  • 35
  • 41
1

By default there is no option available to Disable/Enable all breakpoints, so you need to add it. Steps to add Disable/Enable breakpoints are as :-

  1. Under Tools tab select Customize.

  2. Then under Commands tab, you would find 3 options(drop-downs) - Menu bar, Toolbar and Context menu.

  3. So under Menu bar drop-down, scroll down and select option Debug.

  4. And now under Controls section, select the command you need to add i.e here you would select command Enable All Breakpoints/Disable All Breakpoints and click Add Command.

  5. Close this pop-up and boom, now you would find this option under Debug section of the main console.

rory.ap
  • 34,009
  • 10
  • 83
  • 174
-1

Shortcut to delete all break-points: CTRL+SHIFT+F9.

enter image description here

xav
  • 5,452
  • 7
  • 48
  • 57
Amar HR
  • 153
  • 1
  • 1
  • 7