This documentation is archived and is not being maintained.

Debugger.Launch Method

Launches and attaches a debugger to the process.

[Visual Basic]
Public Shared Function Launch() As Boolean
[C#]
public static bool Launch();
[C++]
public: static bool Launch();
[JScript]
public static function Launch() : Boolean;

Return Value

true if the startup is successful or if the debugger is already attached; otherwise, false.

Exceptions

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

Remarks

If a debugger is already attached, nothing happens.

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 | System.Security.Permissions.UIPermission

Show: