This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Debug Bar Tracer

Description

Many times when creating a custom theme or plugin there is need to view a piece of data you are working with which can be unweidly and not to mention ugly.
This plugin adds a new tab to the Debug Bar plugin that allows you to “trace” the data to a window and displays not only the data, but where the call came from and optionally a description.

Plus, it’s green like the Matrix.

About debug_trace

The method debug_trace() takes one parameter that can be of any data type.
If you want to pass a descriptor for the debug_trace(), pass an array with the following indices:

  • ‘key’ => The descriptor
  • ‘data’ => What you want to trace – can be any data type.

Behind the scenes, each trace is actually an array containing the location of the call, the data and optionally a custom key.
If the parameter passed to debug_trace() is an array that has a key of ‘key’ or ‘data’, then the method overrides the defaults with it.
Otherwise, the method assumes you want to trace the passed parameter as the ‘data’.

Installation

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Be sure you have Debug Bar installed and active

FAQ

I don’t see anything in the Debug Bar window

The Tracer tab only appears where there are items to trace.

How do I trace an item?

Place a call to debug_trace( $param ) into your theme or plugin.

Contributors & Developers

“Debug Bar Tracer” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Debug Bar Tracer” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0

  • First Release