Toggle Breakpoint Command

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Toggle Breakpoint Command on docs.microsoft.com. Turns the breakpoint either on or off, depending on its current state, at the current location in the file.

Debug.ToggleBreakpoint [text]  

text
Optional. If text is specified, the line is marked as a named breakpoint. Otherwise, the line is marked as an unnamed breakpoint, which is similar to what happens when you press F9.

The following example toggles the current breakpoint.

>Debug.ToggleBreakpoint  

Visual Studio Commands
Command Window
Find/Command Box
Visual Studio Command Aliases

Show: