Expand description
The development error page.
When something throws, a developer should see what happened, where, and what to do about it — not a blank 500. In production the same failure renders as a plain page with no internals, and the detail goes to the logs instead.
Structs§
- Diagnostic
- Everything the page knows about a failure.
Functions§
- debug_
enabled - render
- Render a diagnostic, using the request (when available) for the detail panels and to decide between HTML and JSON.
- response_
for - Render an error into a response, honouring debug mode and content negotiation.
- set_
debug - Enable the detailed page. Set once during boot from
app.debug.