BlazorDeveloperTools 0.9.13

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

BlazorDeveloperTools

NuGet Version NuGet Downloads License

Visualize razor markup in your browser for your Blazor apps! This NuGet package adds special markers to your Blazor components that allow the Blazor DevTools browser extensions to represent show your component tree when you are inspecting code. No more guess work trying to figure out which html corresponds to what razor markup.

🚀 Features

  • Component Visualization: See your Blazor component hierarchy directly in Chrome DevTools
  • Component Inspector: Click any element to see which Blazor component renders it
  • Tree Navigation: Navigate through your component structure with an intuitive tree view
  • Real-time Updates: Component tree updates automatically as your application state changes
  • Zero Configuration: Works immediately after installation with no setup required

📦 Installation

You need 2 installs: 1) this NuGet package to output applications with BlazorDevTools data and/or 2) a browser extension to visualize razor markup for apps that have this NuGetpackage.

Package Manager Console

Install-Package BlazorDeveloperTools

.NET CLI

dotnet add package BlazorDeveloperTools

PackageReference

<PackageReference Include="BlazorDeveloperTools" Version="0.9.7" />

🔧 Setup

2. Install the Browser Extension

Install the Blazor Developer Tools browser extension.

Chrome Blazor Developer Tools extension from the Chrome Store. Edge Blazor Developer Tools extension from the Edge Store.

3. Start Debugging

  1. Run your Blazor application
  2. Open Chrome DevTools (F12)
  3. Navigate to the "Blazor" tab
  4. See your components visualized!

🎯 Usage

Once installed, BlazorDeveloperTools automatically adds non-invasive markers to your components during development. These markers are:

  • Invisible to users - No visual changes to your application
  • Development-only - Automatically removed in Release builds
  • Performance-friendly - Minimal overhead during development
  • Compatible - Works with all Blazor hosting models

Component Detection

The package automatically detects and marks:

  • Blazor components
  • Component boundaries
  • Component names and file locations
  • Parent-child relationships

Browser Integration

With the browser extension installed, you can:

  • View the component tree in real-time
  • Click elements to find their parent component
  • See component file locations
  • Refresh the component tree on demand

⚙️ Configuration

Disable in Production (Automatic)

The tools are automatically disabled in Release builds. No action required.

Manual Control

You can manually control when the tools are active.

In Development, BlazorDevTools markers are added automatically. If you want to turn BDT OFF in development (default is ON):

<PropertyGroup>
  <EnableAutomaticMarkers>false</EnableAutomaticMarkers>
</PropertyGroup>

Enable BlazorDevTools in Production (default is OFF):

<PropertyGroup>
  <EnableBlazorDevToolsInProduction>true</EnableBlazorDevToolsInProduction>
</PropertyGroup>

Some components can be problematic if they throw exceptions when they have unexpected children (example MudTimelineItem and ItemContent from MudBlazor).

Skip specific components:

<PropertyGroup>
  <BdtSkipComponents>MudTimelineItem;ItemContent</BdtSkipComponents>
</PropertyGroup>

🎨 What Gets Added to Your HTML?

In development mode, components are wrapped with invisible marker elements:


<div>Your Component Content</div>


<span data-blazordevtools-marker=""open"" data-blazordevtools-id=""{componentId}"" data-blazordevtools-component=""{componentName}""{fileAttr} style=""display:none!important""></span>"
<div>Your Component Content</div>
<span data-blazordevtools-marker=""close"" data-blazordevtools-id=""{componentId}"" style=""display:none!important""></span>

These markers are:

  • Completely invisible (display: none)
  • Removed in production builds by default
  • Used by the browser extension to rebuild the razor component tree

🔍 Troubleshooting

Components not showing in DevTools?

  1. Check the browser extension is installed: Look for the Blazor tab in DevTools
  2. **Cleand and rebuild your Blazor project
  3. Development mode: Confirm you're running in Debug configuration
  4. Refresh DevTools: Click the refresh button in the Blazor panel

Performance considerations?

The markers have negligible performance impact and are only added in development (by default). In Release builds, your application runs exactly as it would without this package (unless you add option to include).

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

⭐ Support

If you find this tool helpful, please consider:

  • Giving us a star on GitHub
  • Rating the browser extensions: Edge, Chrome
  • Sharing with other Blazor developers

Made with ❤️ for the Blazor community

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • net8.0

    • No dependencies.

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.0-beta.5 106 1/29/2026
1.0.0-beta.4 53 1/29/2026
1.0.0-beta.3 50 1/29/2026
1.0.0-beta.2 81 1/22/2026
1.0.0-beta.1 59 1/14/2026
0.9.16 286 10/23/2025
0.9.15 195 10/23/2025
0.9.14 199 10/23/2025
0.9.13 188 10/22/2025
0.9.12 186 10/21/2025
0.9.11 188 10/21/2025
0.9.10 193 10/21/2025
0.9.9 120 10/18/2025
0.9.8 218 10/8/2025
0.9.7 187 10/8/2025
0.9.6 194 10/2/2025
0.9.5 200 10/2/2025
0.9.4 197 10/2/2025
0.9.3 208 10/2/2025
0.9.2 192 10/2/2025
Loading failed

Along with updates to extension, addresses issues of tree not displaying inner components of pages and tool picker saying the page name rather than the component.