Class DebugUtils
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).
- IsDebugDefined
Gets a value that indicates whether DEBUG conditional is defined.
- RecreateDeveloperToolsWindow
Indicates whether the developer tools window should be recreated when Ctrl+Shift+Alt+F12 is pressed. Default is false (previously created window will be shown if it exists).
- UseDlOpenOnLinux
Gets or sets whether to use 'dlOpen' on Linux in order to load native dll.
Properties
- AreDeveloperToolsShown
Gets or sets a value indicating whether developer tools are currently displayed. By default, developer tools are shown in debug mode.
- ExceptionsLoggerDebugWriteLine
Gets or sets whether exception logger (registered with RegisterExceptionsLogger(Action<Exception>?)) outputs messages to WriteLine(string).
- IgnoreSomeExceptionsInLogger
Gets or sets whether exceptions registered with ExceptionLoggerSetIgnore<T>(bool) are ignored in the exceptions logger.
- 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.
- 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
debugOptionFileNamefile existence in order to get "wait" setting on/off.
Events
- DeveloperToolsShown
Occurs when the developer tools are shown.