Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Debugger.Break Method

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();

Exceptions

Exception Type Condition
SecurityException The System.Security.Permissions.UIPermission is not set to break into the debugger.

Remarks

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.

Requirements

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: 

See Also

Debugger Class | Debugger Members | System.Diagnostics Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft