With the release of Avalonia 12, the beloved open-source F12 DevTools (Avalonia.Diagnostics) has been retired and replaced by the highly advanced, commercial Avalonia Accelerate suite.
While the new Accelerate tools are incredibly powerful and represent the future of Avalonia development, we recognize that some developers and small projects still rely on the classic, lightweight, and offline DevTools for basic UI profiling. ClassicDiagnostics.Avalonia is a community-maintained migration of the Avalonia 11 Avalonia.Diagnostics codebase, adapted to run seamlessly on Avalonia 12.
Our goal is to provide a smooth transition for developers upgrading to Avalonia 12, while exploring the addition of small, practical utilities in the future.
As an open-source project building upon the incredible legacy of the Avalonia team, we want to be fully transparent about our scope and intentions. We maintain a humble stance and respect the official ecosystem:
- Support Avalonia Accelerate: We highly respect the core Avalonia team and their business model. If you or your company have the capacity, we strongly encourage you to subscribe to Avalonia Accelerate. It offers a far superior, modern developer experience and directly funds the framework we all love.
- Accelerate Banner intact: The banner promoting Avalonia Accelerate within the classic DevTools will not be removed. We believe it is fair and necessary to help promote the official tool.
- No Remote Dev Protocols: We will not develop, maintain, or reverse-engineer remote development protocols or features. Our focus is strictly bounded to the local, classic F12 DevTools experience.
You can install the latest version using the .NET CLI:
dotnet add package ClassicDiagnostics.Avaloniaor use the NuGet Package Manager in your IDE.
To use ClassicDiagnostics.Avalonia, simply ensure you have the correct namespace and call the attach method in your window initialization:
using Avalonia.Controls;
using ClassicDiagnostics.Avalonia; // Note the namespace change!
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
#if DEBUG
// Attach the classic DevTools
this.AttachDevTools();
#endif
}
}You can also attach the tools at the application level after Avalonia has finished initializing:
using Avalonia;
using Avalonia.Controls.ApplicationLifetimes;
using ClassicDiagnostics.Avalonia;
public partial class App : Application
{
public override void OnFrameworkInitializationCompleted()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.MainWindow = new MainWindow();
}
base.OnFrameworkInitializationCompleted();
#if DEBUG
this.AttachDevTools();
#endif
}
}ClassicDiagnostics.Avalonia is focused on local, classic F12 diagnostics for Avalonia 12+ applications. The current preview keeps the familiar logical tree, visual tree, events, property details, overlays, hotkeys, and screenshot workflow from the original DevTools lineage.
The project is intentionally lightweight: it does not add a remote debugging service, does not replace Avalonia Accelerate, and does not try to become a full external diagnostics platform.
- Application-level attach currently targets classic desktop lifetimes. Broader lifetime support is planned, but not promised in the current preview.
- Work toward an application root and a single global DevTools window is in progress; some paths still follow the legacy per-TopLevel behavior.
- The property editor is still being refactored and does not yet cover every useful Avalonia shape, such as style classes, flags enums, and collection item editing.
- Trace viewing and diagnostic clock controls are planned features, not current stable capabilities.
This project is entirely made possible by the rich legacy of the Avalonia UI team and its contributors. We are deeply grateful for their years of effort in maintaining the original Avalonia.Diagnostics.
This project is licensed under the MIT License, continuing the open-source spirit of the original codebase.