InProcess.DevTools 12.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package InProcess.DevTools --version 12.0.1
                    
NuGet\Install-Package InProcess.DevTools -Version 12.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="InProcess.DevTools" Version="12.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="InProcess.DevTools" Version="12.0.1" />
                    
Directory.Packages.props
<PackageReference Include="InProcess.DevTools" />
                    
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 InProcess.DevTools --version 12.0.1
                    
#r "nuget: InProcess.DevTools, 12.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 InProcess.DevTools@12.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=InProcess.DevTools&version=12.0.1
                    
Install as a Cake Addin
#tool nuget:?package=InProcess.DevTools&version=12.0.1
                    
Install as a Cake Tool

InProcess.DevTools

NuGet

An in-process DevTools window for inspecting the visual tree, styles, properties, and events of Avalonia applications directly within your running app.


⚠️ Important Disclaimer

InProcess.DevTools is an unofficial fork of the original Avalonia.Diagnostics project.

  • No Official Relation: This project is independent and has no relation to the official Avalonia team or the AvaloniaUI organization.
  • No Feature Parity: This fork does not aim to maintain feature parity with the original Avalonia.Diagnostics or any newer official Avalonia debugging tools (like the standalone DevTools).
  • Maintenance: It is provided "as-is" to support developers who specifically prefer the legacy in-process debugging experience in modern Avalonia versions (12+).

About This Fork

The original Avalonia.Diagnostics package was deprecated and removed from recent Avalonia versions in favor of standalone developer tools. This fork revives and maintains the in-process experience for developers who:

  • Prefer an integrated debugging window over a separate application.
  • Want to maintain legacy codebases that depend on the AttachDevTools() extension methods.
  • Require lightweight, in-process inspection during development.

Installation

dotnet add package InProcess.DevTools

Usage & Samples

1. Basic Attachment (Window)

Attach to a specific window. By default, it opens when you press F12.

using Avalonia;
using Avalonia.Controls;

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();
#if DEBUG
        this.AttachDevTools(); 
#endif
    }
}

2. Global Attachment (Application)

Attach to the entire application. This is often the preferred way as it works across all windows.

public partial class App : Application
{
    public override void OnFrameworkInitializationCompleted()
    {
        // ... usual initialization ...
        base.OnFrameworkInitializationCompleted();

#if DEBUG
        this.AttachDevTools();
#endif
    }
}

3. Custom Hotkey

Change the key gesture used to trigger the DevTools window.

using Avalonia.Input;

// Opens with Ctrl+F11
this.AttachDevTools(new KeyGesture(Key.F11, KeyModifiers.Control));

4. Advanced Options

Configure startup behavior, monitor selection, and UI features.

using InProcess.DevTools;

this.AttachDevTools(new DevToolsOptions()
{
    StartupScreenIndex = 0,
    ShowAsChildWindow = true,
    Size = new Avalonia.Size(1024, 768)
});

Sample Project

A complete working example is included in this repository under samples/InProcess.DevTools.Sample.

To run the sample:

  1. Clone this repository.
  2. Open a terminal in the root folder.
  3. Run the following command:
    dotnet run --project samples/InProcess.DevTools.Sample/InProcess.DevTools.Sample.csproj
    

Features

  • Visual Tree Inspector: Explore the logical and visual tree of your application.
  • Style Debugger: Inspect applied styles and troubleshoot selectors.
  • Property Editor: View and edit control properties in real-time.
  • Event Logger: Monitor and filter routed events as they fire.
  • Layout Explorer: Visualize control bounds, margins, and padding.
  • Screenshot Tool: Capture snapshots of controls or windows.

Backward Compatibility

The public extension methods are compatible with the original Avalonia.Diagnostics. Most existing code using this.AttachDevTools() will work by simply replacing the NuGet package and updating namespaces where internal types were used.

License

This project is licensed under the MIT License.


Looking for the official tools? Visit the Avalonia Documentation for the standalone Developer Tools.

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 is compatible.  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
12.0.2 88 5/15/2026
12.0.1 90 5/13/2026