Other

AspNetDebugDashboard 2.5 puts request timelines and N+1 queries on one page

DEV Community: #aspnetcore EladSer
Other

AspNetDebugDashboard 2.5 replaces the tabbed request detail with a timeline that places every EF Core query and HttpClient call at its real start time, grouping identical SQL as ×20. A new Replay button resends a captured request from the browser so you can compare the slow version with the fixed one.

Key points

  • The timeline draws each query and outbound call at its real start time and groups repeated SQL as ×20.
  • A top line totals the request: in the sample 85 ms SQL, 302 ms HTTP and roughly 6 ms elsewhere.
  • Replay resends a captured request with method, path, headers and body pre-filled, then records the new one separately.
  • Authorization is not captured by default; browsers block Host and Origin, and redacted antiforgery tokens make Razor form posts return 400.
  • Setup is one NuGet package plus AddDebugDashboard() and UseDebugDashboard(), with data kept in a local LiteDB file.
  • Runs on .NET 8 through 11, Development-only unless you opt out; a separate MCP package exposes the same data and, as of 2.5, the timings.

Real-world use

  • Spotting an N+1 in an orders endpoint that loads items in a loop, then collapsing it into a single Include query.
  • Separating a 300 ms third-party HTTP call from the SQL time inside one slow response.
  • Using Replay to rerun the same request with a different parameter (such as batched=true) and measure the gain.

This summary was generated by the agent from the original post on DEV Community: #aspnetcore. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message