BlazorDeveloperTools 0.9.15
See the version list below for details.
dotnet add package BlazorDeveloperTools --version 0.9.15
NuGet\Install-Package BlazorDeveloperTools -Version 0.9.15
<PackageReference Include="BlazorDeveloperTools" Version="0.9.15"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="BlazorDeveloperTools" Version="0.9.15" />
<PackageReference Include="BlazorDeveloperTools"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add BlazorDeveloperTools --version 0.9.15
#r "nuget: BlazorDeveloperTools, 0.9.15"
#:package BlazorDeveloperTools@0.9.15
#addin nuget:?package=BlazorDeveloperTools&version=0.9.15
#tool nuget:?package=BlazorDeveloperTools&version=0.9.15
BlazorDeveloperTools
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
- Run your Blazor application
- Open Chrome DevTools (F12)
- Navigate to the "Blazor" tab
- 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?
- Check the browser extension is installed: Look for the Blazor tab in DevTools
- **Cleand and rebuild your Blazor project
- Development mode: Confirm you're running in Debug configuration
- 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.
🔗 Links
⭐ 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
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 |
Continuation to Addresses critical bug where generics inside lambda expressions inside components cause the generic to incorrectly be identified as a component. This would end up adding markers inside a component (in the lambda expression) breaking code. This re-adds BdtSkip components optional parameter.