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 注册表项中已注册的托管调试器。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.

适用于