-
Notifications
You must be signed in to change notification settings - Fork 384
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
Add debugging tools to admin bar #3588
Comments
The idea for this came from the Tracy Debugger, which provides a |
I've always been dreaming about a Query Monitor integration... If the solution here is implementation agnostic, that would be huge. |
The main work is collecting the data. Whether you then output it as a list in the admin bar or a list in QM is just a matter of picking the right classes...? |
That's what I wanted to hear, thanks :-) |
See also #2169 and #1801. It would be cool to show a
I often dump out variables with this: error_log( json_encode( $x, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES ) ); I then tail the error log. Would this be any different other than avoiding the need to have access to the error log? |
@schlessera Have you continued exploring this? |
Is there any UX work that I can support on this, or is it already pretty much thought out? |
I think we need to first nail down what information specifically we want to surface from a technical perspective, and then we can explore UX. |
I agree. Let's think about the feature in the context of the "workflows" we
are discussing as part of the upcoming roadmap. No implementation should be
started on this before we nail down the feature requirements.
…On Wed, Aug 5, 2020 at 12:20 PM Weston Ruter ***@***.***> wrote:
I think we need to first nail down what information specifically we want
to surface from a technical perspective, and then we can explore UX.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#3588 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAD3R2IVQJXJXWKFONUS46TR7GWJFANCNFSM4JDNQMNA>
.
|
Feature description
As debugging is a big part of working with the AMP plugin, I think we need to ensure we provide as many tools as possible to make this as easy as it can be.
Right now, debugging anything that happens during the shutdown handler can only be properly inspected through XDebug or logging. The most straight-forward way that most developers use to get quick info (dumping) is not accessible at that point.
I'd like to add a debugging toolset to the AMP admin bar integration (maybe hidden behind a
AMP_DEBUG
switch?) that shows meaningful diagnostic data, and most of all, provides a container to dump data into.A developer should be able to do something like
AMP_Debug::dump( $some_variable );
and it would populate a submenu in the admin bar with entries.Each dump would show how many times it was triggered, and what the individual values were.
Cheap example menu structure diagram thingy:
This would come in extremely handy for getting a quick overview of what a certain piece of code does, and could even be used on production sites (😬).
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: