Debugger.Launch Debugger.Launch Debugger.Launch Debugger.Launch Method

定義

啟動偵錯工具,並將其附加至處理序。Launches and attaches a debugger to the process.

public:
 static bool Launch();
public static bool Launch ();
static member Launch : unit -> bool
Public Shared Function Launch () As Boolean

傳回

如果啟動成功或偵錯工具已附加,則為 true,否則為 falsetrue if the startup is successful or if the debugger is already attached; otherwise, false.

例外狀況

UIPermission 並不是設定來啟動偵錯工具。The UIPermission is not set to start the debugger.

備註

如果已附加偵錯工具,會發生任何事。If a debugger is already attached, nothing happens.

安全性

UIPermission
若要啟動偵錯工具的權限。for permission to start a debugger. 相關聯的列舉型別: UnrestrictedAssociated enumeration: Unrestricted

SecurityPermission
操作與 unmanaged 程式碼。for operating with unmanaged code. 相關聯的列舉型別:UnmanagedCode 安全性動作: DemandAssociated enumeration: UnmanagedCode Security action: Demand

適用於

另請參閱