Debugger.Break Method ()
Signals a breakpoint to an attached debugger.
Assembly: mscorlib (in mscorlib.dll)
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.
for permission to start a debugger. Associated enumeration: PermissionState.Unrestricted
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8.1