Class Debugging
Facilitates debugging tasks that do not depend on any conditional defines
Inheritance
System.Object
Debugging
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos
Assembly: Azos.dll
Syntax
public static class Debugging
Fields
CONFIG_DEBUG_CONF_REFRESH_ATTR
Declaration
public const string CONFIG_DEBUG_CONF_REFRESH_ATTR = "debug-conf-refresh"
Field Value
Type | Description |
---|---|
System. |
CONFIG_DEFAULT_DEBUG_ACTION_ATTR
Declaration
public const string CONFIG_DEFAULT_DEBUG_ACTION_ATTR = "debug-default-action"
Field Value
Type | Description |
---|---|
System. |
CONFIG_TRACE_DISABLE_ATTR
Declaration
public const string CONFIG_TRACE_DISABLE_ATTR = "trace-disable"
Field Value
Type | Description |
---|---|
System. |
Properties
DefaultDebugAction
Returns the global default setting, and optionally reads default debug action from global application's configuration if its value is DefaultFromConfig (default). Application can override this value at startup in order to avoid dynamic configuration lookups on every call
Declaration
public static DebugAction DefaultDebugAction { get; set; }
Property Value
Type | Description |
---|---|
Debug |
TraceDisabled
Controls whether to send Trace.Write() and Debug.Write() output to LogService
Declaration
public static bool TraceDisabled { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Assert(Boolean, String, DebugAction, String, MessageType, Int32, String, String, Nullable<Guid>, Int32)
Declaration
public static void Assert(bool condition, string text = null, DebugAction action = DebugAction.Default, string from = null, MessageType type = MessageType.Debug, int source = 0, string topic = null, string pars = null, Guid? correlationContext = default(Guid? ), int frameOffset = 1)
Parameters
Type | Name | Description |
---|---|---|
System. |
condition | |
System. |
text | |
Debug |
action | |
System. |
from | |
Message |
type | |
System. |
source | |
System. |
topic | |
System. |
pars | |
System. |
correlationContext | |
System. |
frameOffset |
Fail(String, DebugAction, String, MessageType, Int32, String, String, Nullable<Guid>, Int32)
Declaration
public static void Fail(string text = null, DebugAction action = DebugAction.Default, string from = null, MessageType type = MessageType.Debug, int source = 0, string topic = null, string pars = null, Guid? correlationContext = default(Guid? ), int frameOffset = 1)
Parameters
Type | Name | Description |
---|---|---|
System. |
text | |
Debug |
action | |
System. |
from | |
Message |
type | |
System. |
source | |
System. |
topic | |
System. |
pars | |
System. |
correlationContext | |
System. |
frameOffset |
Write(String, String, MessageType, Int32, String, String, Nullable<Guid>, Int32)
Declaration
public static void Write(string text, string from = null, MessageType type = MessageType.Debug, int source = 0, string topic = null, string pars = null, Guid? correlationContext = default(Guid? ), int frameOffset = 1)
Parameters
Type | Name | Description |
---|---|---|
System. |
text | |
System. |
from | |
Message |
type | |
System. |
source | |
System. |
topic | |
System. |
pars | |
System. |
correlationContext | |
System. |
frameOffset |