CDS.Core 1.0.1

dotnet add package CDS.Core --version 1.0.1
                    
NuGet\Install-Package CDS.Core -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CDS.Core" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CDS.Core" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="CDS.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CDS.Core --version 1.0.1
                    
#r "nuget: CDS.Core, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CDS.Core@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CDS.Core&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=CDS.Core&version=1.0.1
                    
Install as a Cake Tool

πŸš€ CDS β€” Central Debug System

A structured, real-time debug signal system for .NET β€” built for developers and AI-assisted debugging.


🧭 Why CDS?

Traditional debugging is broken:

  • ❌ Noisy output windows
  • ❌ Unstructured logs
  • ❌ Important signals get buried

πŸ‘‰ CDS turns your app into a signal-driven system:

  • Emit structured debug signals
  • Observe them in a real-time UI
  • Route them to file or custom sinks
  • Analyze without stopping execution

⚑ 30-Second Setup (Deterministic)

1. Install

Install-Package CDS.Core
Install-Package CDS.Wpf

2. Enable CDS (REQUIRED)

πŸ“ Place inside: App.xaml.cs β†’ OnStartup

using CDS.Core.Diagnostics;
using CDS.Wpf.Sinks;

private FileDebugSink _fileSink;

protected override void OnStartup(StartupEventArgs e)
{
    base.OnStartup(e);

    // βœ… Enable CDS
    DebugConfig.Enabled = true;

    // βœ… Optional but recommended (file logging)
    _fileSink = new FileDebugSink();
    DebugBus.RegisterSink(_fileSink);

    // βœ… Sanity check
    DebugBus.Emit("System", DebugLevel.Info, "CDS Initialized", "App");
}

πŸ“ Optional cleanup:

protected override void OnExit(ExitEventArgs e)
{
    _fileSink?.Stop();
    base.OnExit(e);
}

3. Add Debug Panel (REQUIRED)

xmlns:cds="clr-namespace:CDS.Wpf.Views;assembly=CDS.Wpf"

<cds:DebugPanelView />

πŸ‘‰ The UI automatically connects to the signal stream.


4. Emit Signals Anywhere

DebugBus.Emit("UI", DebugLevel.Info, "Button clicked");

βœ… Expected Result

If setup is correct, you will get:

  • πŸ”΄ Live debug stream in UI
  • πŸ”΅ Auto-scroll + high-performance rendering
  • 🟑 Filtering (level, category, search)
  • 🧠 Duplicate grouping (xN)
  • ⏸️ Pause β†’ inspect β†’ resume (with buffered replay)
  • πŸ“ File logging (if enabled)

🧠 Mental Model (Important)

CDS has two independent pipelines:

1. Signal Pipeline (Core)
   DebugBus.Emit β†’ Sinks (file, etc.)

2. Observation Pipeline (UI)
   DebugPanelView β†’ Collector β†’ Live UI

πŸ‘‰ You explicitly wire the system. Nothing is hidden.


πŸ”§ Debug Configuration

Default behavior:

  • βœ… DEBUG β†’ enabled automatically
  • πŸ”’ RELEASE β†’ disabled unless configured

Enable in production:

DebugConfig.Enabled = true;

OR:

APP_DEBUG=1

var fileSink = new FileDebugSink();
DebugBus.RegisterSink(fileSink);

πŸ“ Logs are saved to:

%LOCALAPPDATA%\CDS\

🧠 Structured Signals (Advanced)

DebugBus.Emit(new DebugEvent
{
    Category = "Network",
    Level = DebugLevel.Warning,
    Message = "Slow response",
    Source = "ApiClient",
    SubCategory = "Latency",
    Data =
    {
        ["DurationMs"] = 1200,
        ["Endpoint"] = "/users"
    }
});

⚠️ Important Notes

πŸ”΄ CDS disabled in Release

If nothing shows:

DebugConfig.Enabled = true;

πŸ”΄ WPF Required for UI

DebugPanelView requires a WPF app (Application.Current.Dispatcher).


πŸ”΄ Pause Behavior (Key Feature)

Pause does NOT stop logging.

  • Signals continue flowing
  • UI freezes for inspection
  • On resume β†’ buffered signals replay in order

πŸ‘‰ Zero data loss.


🧭 Best Practices

  • βœ” Use meaningful categories (UI, Data, Network)
  • βœ” Use Source for origin tracking
  • βœ” Use Data for structured insights (AI-friendly)
  • βœ” Use DebugThrottle for high-frequency logs
  • βœ” Think in signals, not logs

πŸ—οΈ Architecture

Your Code
   ↓
DebugBus.Emit(...)
   ↓
───────────────
Signal Pipeline
───────────────
   ↓
Sinks (File, future extensions)
   ↓
───────────────
Observation Pipeline
───────────────
   ↓
DebugPanelView (UI)

πŸ”₯ Core Idea

CDS is not a logger. It is a real-time signal system for your application.


πŸ“„ License

MIT

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.7.2

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on CDS.Core:

Package Downloads
CDS.Wpf

CDS WPF provides a real-time debug panel UI for CDS.Core.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 105 4/10/2026
1.0.0 99 4/8/2026