Repository navigation
feat: refresh exception reporting across HTML, CLI, and API responses - #10829
Open
paulbalandan wants to merge 1 commit into
Open
paulbalandan wants to merge 1 commit into
paulbalandan wants to merge 1 commit into
Conversation
paulbalandan
force-pushed
the
new-exception-handler-4.8
branch
2 times, most recently
from
November 26, 2026 07:41
e0d5b94 to
15bbb26
Compare
paulbalandan
force-pushed
the
new-exception-handler-4.8
branch
from
November 26, 2026 08:18
15bbb26 to
518dc00
Compare
michalsn
approved these changes
Nov 26, 2026
michalsn
left a comment
Member
There was a problem hiding this comment.
Looks pretty cool. Not sure if I would prefer the tabs (like we used to have) in place of "Diagnostics"... but maybe this is a matter of preference.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Refresh detailed exception reporting for
4.8and normalize stack frames across the HTML error page, CLI output, API responses, and logs. Each frame now keeps the call, arguments, and source location aligned.path:linelinks clickable, and wraps long calls to the terminal width.SHOW_DEBUG_BACKTRACE.trace, with normalized call and source metadata. Frame arguments have been removed, andtraceis empty whenSHOW_DEBUG_BACKTRACEis disabled.The user guide, error-page screenshot, changelog, and 4.8 upgrade guide have been updated.
Try it locally
Demo files and commands for HTML, JSON, and CLI errors
Use these files in a local checkout. The demo controller deliberately throws on the home page.
app/Config/Routes.phpapp/Controllers/Home.phpapp/Commands/ThrowException.phpRun the demos
Start the development server.
http://localhost:8080/http://localhost:8080/?demo=originshttp://localhost:8080/?demo=frameshttp://localhost:8080/?demo=causeshttp://localhost:8080/?demo=sqlhttp://localhost:8080/demo/diagnosticsX-Demo-ResponseheaderRequest the JSON response and check the HTTP status and normalized
trace.Run the CLI demo to inspect the source excerpt and wrapped backtrace. It exits with status
1.Checklist