Table of Contents

Class ResultDebugSettings

Namespace
Trellis
Assembly
Trellis.Results.dll

Controls runtime behavior of ResultDebugExtensions methods (Debug, DebugDetailed, DebugWithStack, DebugOnSuccess, DebugOnFailure).

public static class ResultDebugSettings
Inheritance
ResultDebugSettings
Inherited Members

Examples

// Disable debug tracing at runtime (DEBUG builds only)
ResultDebugSettings.EnableDebugTracing = false;

Remarks

In DEBUG builds, EnableDebugTracing defaults to true so debug spans are emitted. In RELEASE builds, the debug methods are compile-time no-ops regardless of this flag.

Set EnableDebugTracing to false in DEBUG builds to suppress debug span emission at runtime — useful for integration tests or staging environments built with DEBUG configuration.

Properties

EnableDebugTracing

Gets or sets whether debug tracing is enabled at runtime. Default is true in DEBUG builds, false in RELEASE builds. Has no effect in RELEASE builds where debug methods are compile-time no-ops.

public static bool EnableDebugTracing { get; set; }

Property Value

bool