Debugger.IsLogging 方法

定義

檢查記錄是否由已附加偵錯工具啟用。Checks to see if logging is enabled by an attached debugger.

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

傳回

Boolean

如果已附加偵錯工具並啟用記錄,則為 true,否則為 falsetrue if a debugger is attached and logging is enabled; otherwise, false. 已附加偵錯工具是 DbgManagedDebugger 登錄機碼中註冊的 Managed 偵錯工具。The attached debugger is the registered managed debugger in the DbgManagedDebugger registry key. 如需這個機碼的詳細資訊,請參閱啟用 JIT 附加偵錯For more information on this key, see Enabling JIT-Attach Debugging.

適用於