Signals a breakpoint to an attached debugger.
[Visual Basic] Public Shared Sub Break() [C#] public static void Break(); [C++] public: static void Break(); [JScript] public static function Break();
|SecurityException||The System.Security.Permissions.UIPermission is not set to break into the debugger.|
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.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
.NET Framework Security:
- UIPermission for permission to break in the debugger. Associated enumeration: PermissionState.Unrestricted