Signals a breakpoint to an attached debugger.
Public Shared Sub Break
Debugger.Break()
public static void Break()
public: static void Break()
public static function Break()
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.
for permission to start a debugger. Associated enumeration: PermissionState..::.Unrestricted
for operating with unmanaged code. Associated enumeration: SecurityPermissionFlag..::.UnmanagedCode Security action: Demand.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune