Compartilhar via


Toggle Breakpoint Command

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Turns the breakpoint either on or off, depending on its current state, at the current location in the file.

Syntax

Debug.ToggleBreakpoint [text]

Arguments

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.

Example

The following example toggles the current breakpoint.

>Debug.ToggleBreakpoint

See also