xyDebugConsole 1.0.1

dotnet add package xyDebugConsole --version 1.0.1
                    
NuGet\Install-Package xyDebugConsole -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="xyDebugConsole" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="xyDebugConsole" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="xyDebugConsole" />
                    
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 xyDebugConsole --version 1.0.1
                    
#r "nuget: xyDebugConsole, 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 xyDebugConsole@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=xyDebugConsole&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=xyDebugConsole&version=1.0.1
                    
Install as a Cake Tool

xyDebugConsole

A few Avalonia building blocks for making debug output visible somewhere: a window that shows logs, and one that starts an external program and captures its output. Part of xyToolz.

Installation

dotnet add package xyDebugConsole

What's in it

  • DebugConsole – a window that shows whatever gets written into it. It has no idea where the logs actually come from, it only knows ILogSink and a couple of events.
  • DebugConsoleSink – the bridge to xyLogger. Implements ILogSink and writes formatted log entries into a TextWriter. This is what hooks the console up to a logger.
  • ExternalProcessMonitorWindow – its own window, starts a program and shows its stdout/stderr. Has nothing to do with DebugConsole, works on its own.
  • ConsoleTextBoxWriter – small helper that redirects Console.Write calls into an Avalonia TextBox.

Usage

Hooking the console up to a xyAsyncLogger<T>:

using xyDebugConsole.Services;
using xyDebugConsole.Views;
using xyLogger.Loggers;
using xyLogger.Models;

var debugConsole = new DebugConsole();
debugConsole.Show();

var logger = new xyAsyncLogger<xyDefaultLogEntry>();
logger.AddSink(new DebugConsoleSink(debugConsole.Writer));

logger.Log("App started", LogLevel.Information);

For apps that haven't moved to xyAsyncLogger<T> yet and still use the static xyLog events, debugConsole.AttachToStaticLogger() also works — more of a stopgap for legacy code than something to reach for by default.

Monitoring a program, independent of the debug console:

var monitor = new ExternalProcessMonitorWindow();
monitor.Show();
await monitor.MonitorProcessAsync("ipconfig");

Requirements

.NET 8, Avalonia. Runs on Windows, Linux, and macOS.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 86 7/28/2026
1.0.0 88 7/28/2026