Table of Contents

Class DebugUtils

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Contains static methods related to the debug process.

public static class DebugUtils
Inheritance
DebugUtils

Fields

DebugLoading

Gets or sets whether to log application loading process.

ExceptionsLoggerAppLog

Gets or sets whether exception logger (registered with RegisterExceptionsLogger(Action<Exception>?)) outputs messages to Log(object?, LogItemKind).

ExceptionsLoggerDebugWriteLine

Gets or sets whether exception logger (registered with RegisterExceptionsLogger(Action<Exception>?)) outputs messages to WriteLine(string).

IsDebugDefined

Gets a value that indicates whether DEBUG conditional is defined.

UseDlOpenOnLinux

Gets or sets whether to use 'dlOpen' on Linux in order to load native dll.

Properties

IsDebugDefinedAndAttached

Gets whether "DEBUG" is defined and debugger is attached.

IsDebuggerAttached

Alias for IsAttached.

Methods

DebugCall(Action)

Calls the specified action IsDebugDefined is true.

DebugCallIf(bool, Action)

Calls the specified action if condition and IsDebugDefined are true.

ExceptionLoggerIgnored(Type)

Gets whether exceptions of the specified type are ignored in the exception logger.

ExceptionLoggerSetIgnore<T>(bool)

Sets whether exceptions of the specified type are ignored in the exception logger.

HookExceptionEvents()

Same as RegisterExceptionsLogger(Action<Exception>?).

RegisterExceptionsLogger(Action<Exception>?)

Subscribes to events related to the exception handling and logs exceptions.

RegisterExceptionsLoggerIfDebug(Action<Exception>?)

Calls RegisterExceptionsLogger(Action<Exception>?) if DEBUG conditional is defined.

WaitDebugger(string?)

Waits until debugger is attached. Uses debugOptionFileName file existance in order to get "wait" setting on/off.