liveBook · Manning

DeveloperExceptionPageMiddleware

DeveloperExceptionPageMiddleware is ASP.NET Core middleware that catches unhandled pipeline exceptions and generates a detailed diagnostic error page for developers.

How 2 Manning books explain it

ASP.NET Core in Action, 3e

A developer exception page is an ASP.NET Core diagnostic page that displays detailed information about an unhandled exception during development.

How it is used
Provides detailed error feedback when an exception occurs during development.
How deep it goes
Explains pipeline exception capture, the 500 response, displayed diagnostics, and environment-specific setup without implementing custom middleware.
Examples
Shows a minimal API pipeline, a diagnostic page with stack trace and request details, and a production `/error` endpoint.
What you can do after
Diagnose/debug with it during development while choosing a safer error response for production.

Read how ASP.NET Core in Action, 3e explains DeveloperExceptionPageMiddleware →

Building Web APIs with ASP.NET Core

DeveloperExceptionPageMiddleware is ASP.NET Core middleware that captures pipeline exceptions and generates an HTML page containing detailed diagnostic information.

How it is used
Handles development-time HTTP pipeline failures by presenting detailed diagnostic information to developers.
How deep it goes
Explains synchronous and asynchronous exception capture, diagnostic contents, environment selection, and a verification endpoint.
Examples
Uses Program.cs configuration and test endpoints that throw Exception("test") to demonstrate generated error responses.
What you can do after
Diagnose/debug with it by enabling detailed development errors and routing nondevelopment failures through /error.

Read how Building Web APIs with ASP.NET Core explains DeveloperExceptionPageMiddleware →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.