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 selected hooks #2

Closed bobbingwide closed 9 years ago

bobbingwide commented 9 years ago

There are times when the existing trace output does not contain the information you need. It would be nice to be able to choose a set of hooks where tracing would be automatically performed. The information required varies depending on the hook.

Requirement

This Issue covers:

  1. General tracing of the hook and the passed parameters
  2. Tracing of the contents of the global post object

Tracing of the currently registered hook functions is addressed in #3.

Proposed solution

Add Other hooks to trace textarea field in which you type a comma separated list of the hooks where you want to see the parameters passed to the hook.

For each hook listed the action/filter function invoked will be bw_trace_parms().

Trace the global post object

Add Trace the global post object textarea field to identify the hooks where you want to see the contents of the global post object, if set.

For each hook listed the action/filter function invoked will be bw_trace_the_post(). This will trace the values of the global $post variable.

bobbingwide commented 9 years ago

ba6b96a fixes #2

bobbingwide commented 9 years ago

closing