-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Debug] Separate visually errors from vendor and from application #23144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
That's a great idea! |
rentalhost
added a commit
to rentalhost/symfony
that referenced
this issue
Jun 12, 2017
…ation code (rentalhost)8000
rentalhost
added a commit
to rentalhost/symfony
that referenced
this issue
Jun 12, 2017
…ation code (rentalhost)
rentalhost
added a commit
to rentalhost/symfony
that referenced
this issue
Jun 12, 2017
…ation code (rentalhost)
rentalhost
added a commit
to rentalhost/symfony
that referenced
this issue
Jun 12, 2017
…ation code (rentalhost)
rentalhost
added a commit
to rentalhost/symfony
that referenced
this issue
Jun 12, 2017
…ation code (rentalhost)
rentalhost
added a commit
to rentalhost/symfony
that referenced
this issue
Jun 12, 2017
…ation code (rentalhost)
Fixed on PR #23152. |
reopening here (will be closed when the PR is merged, but this way we don't lose track in case the PR gets closed for some reason) |
fabpot
added a commit
that referenced
this issue
Mar 27, 2018
… (javiereguiluz) This PR was squashed before being merged into the 4.1-dev branch (closes #26671). Discussion ---------- More compact display of vendor code in exception pages | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #23144 | License | MIT | Doc PR | - I like the general idea proposed in #23152 ... but I don't like the implementation ... so this PR is an alternative implementation. **UPDATE**: the proposed feature has been completely redesigned. See #26671 (comment) ~~The idea is to **hide by default all information that comes from "vendors"** (`vendor/` or `var/cache/` dir) because that code is out of your reach and you can't change it to fix your error.~~ ~~In practice, each exception trace now would display a `Hide vendors` option enabled by default:~~ <details> <summary>Click here to view the outdated images</summary>  It works like a toggle ... and it's compatible with the overall toggle of each trace header:  When exceptions are complex, the amount of noise removed is massive: ## Before  ## After  </details> Commits ------- 510b05f More compact display of vendor code in exception pages
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be great if on debug a stacktrace (like on the "whoops" page) we have a visual difference between the "vendor code" and the "application code". It can help find out "where my problem starts".
The
ReflectionClass()
should help to tell where file is located, then just check if it is from "vendor" folder to mark as "white background" else "yellow background" to indicate an "user-zone file".Example:
The text was updated successfully, but these errors were encountered: