bobbingwide / oik-bwtrace

debug trace for WordPress
https://www.oik-plugins.com/oik-plugins/oik-bwtrace-debug-trace-for-wordpress/
GNU General Public License v2.0
6 stars 1 forks source link

Add ad hoc tracing of filter results #6

Closed bobbingwide closed 9 years ago

bobbingwide commented 9 years ago

It would be nice to see the results of selected filters in the trace log.

Proposed solution

Add a Filter results to trace text area field to the action options admin page in which the names of the filters to trace are specified, comma separated.

For each filter listed attach bw_trace_results() to trace the returned value. This will trace the returned value and optionally, when tracing at BW_TRACE_DEBUG will also trace the other parameters passed.

Notes:

Some filters such as gettext and gettext_with_context are invoked many hundreds of times per transaction. You could get a lot of output.

bobbingwide commented 9 years ago

This was fixed in 2.0.6 but I used the wrong string form for the commit to close the issue. Fix Issue #6 rather than Fixes #6 or other variations