Edi.RouteDebugger
1.7.0
See the version list below for details.
dotnet add package Edi.RouteDebugger --version 1.7.0
NuGet\Install-Package Edi.RouteDebugger -Version 1.7.0
<PackageReference Include="Edi.RouteDebugger" Version="1.7.0" />
paket add Edi.RouteDebugger --version 1.7.0
#r "nuget: Edi.RouteDebugger, 1.7.0"
// Install Edi.RouteDebugger as a Cake Addin
#addin nuget:?package=Edi.RouteDebugger&version=1.7.0
// Install Edi.RouteDebugger as a Cake Tool
#tool nuget:?package=Edi.RouteDebugger&version=1.7.0
ASP.NET Core RouteDebugger Middleware
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
View All Routes
- Access
/route-debugger
or your custom path from browser or postman
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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. |
-
net6.0
- No dependencies.
-
net8.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 :)
|