Break Method
Collapse the table of content
Expand the table of content

Debugger.Break Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Signals a breakpoint to an attached debugger.

Namespace:  System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)

public static void Break()

If no debugger is attached, users are asked if they want to attach a debugger. If yes, the debugger is started. If a debugger is attached, the debugger is signaled with a user breakpoint event, and the debugger suspends execution of the process just as if a debugger breakpoint had been hit.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft