Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Command to clear all breakpoints in VSCode (as in visual studio)

In visual studio you can Ctrl+Shit+F9 to clear all breakpoints.
Is there a similar function in VsCode? I couldn't find any good answer.

Thanks!

like image 414
Jorge Santos Avatar asked Dec 13 '19 10:12

Jorge Santos


People also ask

How do I delete all breakpoints in Visual Studio Code?

Delete All Breakpoints If you've been debugging your code for any period, you may find a number of breakpoints littered around your code. If you want to quickly delete all your break poins, you can press Ctrl, Shift + F9 Visual Studio Delete All Breakpoints

How do I create a conditional breakpoint in Visual Studio Code?

Or hover over the breakpoint symbol, select the Settings icon, and then select Conditions in the Breakpoint Settings window. You can also right-click in the far left margin next to a line of code and select Insert Conditional Breakpoint from the context menu to set a new conditional breakpoint.

How do you break a call stack in Visual Studio?

To break at the instruction or line that a calling function returns to, you can set a breakpoint in the Call Stack window. To open the Call Stack window, you must be paused during debugging. Select Debug > Windows > Call Stack, or press Ctrl + Alt + C.

How do I set an inline breakpoint in Visual Studio Code?

Inline breakpoints. An inline breakpoint can be set using Shift+F9 or through the context menu during a debug session and inline breakpoints are shown inline in the editor. Inline breakpoints can also have conditions. Editing multiple breakpoints on a line is possible through the context menu in the editor left margin.


1 Answers

There is an unbound command workbench.debug.viewlet.action.removeAllBreakpoints that you could set to your own keybinding.

{
  "key": "alt+b",
  "command": "workbench.debug.viewlet.action.removeAllBreakpoints"
},

In the Keyboard Shortcuts just search for breakpoint and various commands come up.

And in the Breakpoints panel viewlet hover over one of the icons to see that it will "Remove all breakpoints"

enter image description here

like image 149
Mark Avatar answered Sep 28 '22 04:09

Mark