Edi.RouteDebugger 1.10.0

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

ASP.NET Core RouteDebugger Middleware

.NET Core

Show current route info and all routes in an ASP.NET Core application

Background

Inspired by .NET Framework version of the origional RouteDebugger: https://haacked.com/archive/2008/03/13/url-routing-debugger.aspx/

We need something similar in .NET Core, with a few differences:

  • Add route info in response header instead of append them in HTML
  • Use JSON over HTML table for better tooling support
  • Use Middleware to make it .NET Corelish

Usage

Install From NuGet

dotnet add package Edi.RouteDebugger

Adding the Middleware

Recommend use in development environment ONLY

If you are using the Developer Exception Page middleware, put this middleware BEFORE the call to app.UseDeveloperExceptionPage() as the exception page would not work otherwise.

if (env.IsDevelopment())
{
    app.UseRouteDebugger();
}

You can also use an overload to specify custom path where the route debugger will be available, for example:

if (env.IsDevelopment())
{
    app.UseRouteDebugger("/tools/route-debugger");
}

View Current Route

  • Open any page in your application
  • View response header x-aspnet-route

alternate text is missing from this package README image

View All Routes

  • Access /route-debugger or your custom path from browser or postman

alternate text is missing from this package README image

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 is compatible.  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.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Edi.RouteDebugger:

Repository Stars
2sic/2sxc
DNN + 2sxc = #DNNCMS - This tool helps web designers and developers prepare great looking content in DNN (DotNetNuke). It's like mixing DNN with Umbraco and Drupal :)
Version Downloads Last Updated
1.10.0 166 7/11/2025
1.9.0 11,172 11/13/2024
1.8.0 63,961 12/17/2023
1.7.0 19,552 10/11/2023
1.6.0 13,169 5/9/2023
1.5.0 42,723 11/9/2022
1.4.0 22,239 8/24/2022
1.3.3 79,180 11/4/2021
1.3.2 45,225 11/27/2020
1.3.1 554 11/27/2020
1.3.0 714 11/11/2020
1.2.0 8,580 9/15/2020
1.1.0 5,484 4/30/2020
1.0.0 880 4/29/2020