[wp-trac] [WordPress Trac] #51597: Add debugging of a single session
WordPress Trac
noreply at wordpress.org
Thu Oct 22 01:30:19 UTC 2020
#51597: Add debugging of a single session
--------------------------------+-----------------------------
Reporter: galbaras | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: ui, administration |
--------------------------------+-----------------------------
At the moment, debugging options are controlled by constants. This means
that an entire site is either producing debug output and/or saving
queries, or it doesn't.
In this situation, every user session sees the same output, and that's a
problem for all but the person who's trying to fix the problem. On large,
active sites, this can be a problem for many, many users, thus affecting
the respective business negatively for no good reason.
I propose to add a way to debug only a single session. Those with the
"administrator" role and/or a new "debug" capability should see a new menu
in the admin bar, where they can turn on various debugging options.
By using GET parameters and/or cookies, it should be possible to then
trigger debugging functions that match the user's selection only for that
one session.
Some debugging still requires site-wide flags, e.g. background tasks, API
calls, etc. Therefore, the new mechanism cannot replace the use of
constants completely. However, if may be possible to identify cases for
constants, cases for session flags and cases for both.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51597>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list