[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog
You are here: Home / WordPress plugins from oik-plugins / FREE oik plugins / oik-bwtrace – debug trace for WordPress / oik-bwtrace output file – bwtrace.loh

oik-bwtrace output file – bwtrace.loh

The output from the oik-bwtrace plugin is written to an output file on your WordPress server. This documentation assumes the file name is bwtrace.loh.

Since nine times out of ten you will want to view the trace log in one window and the web page in another and since some browsers will attempt to download a .log file, rather than display it within the browser, we use the .loh extension.

The general structure of a trace log record is a series of fields separated by spaces. Here’s an example split over multiple lines

wp-content\plugins\bobbing\bobbing.php(51:0) 
bobbing_init(3) 
98 
2015-10-14T11:01:38+00:00 
2.271757 
0.001041 
cf=init,oik_loaded 
12 
0 
48288792/48452760 
F=390 
the ultimate answer 
42

The fields are:

Field Comment
sourcefile(lineno:level) the sourcefile may be fully qualified with ABSPATH
function(invocation count) number of calls to trace from this function
trace record count
timestamp
elapsed since transaction started
interval since previous trace record
context including current filter shows filter tree
number of queries
post ID
memory/peak usage in bytes
files loaded
field label
field value
bwecho’d content

Some of the fields are optional. The contents of each trace record can be selected using Settings > oik trace options.

The field value is printed using the PHP print_r() function or an equivalent function ( bw_trace_obsafe_print_r() ). It will print all the values of an array or object. For large arrays or objects this may produce a lot of output.

When the bw_trace2() API is called without any parameters then it will trace the current values of the parameters that were passed to the function.

Note: Remember that the trace output file is publicly accessible. If you do enable tracing on a live site then you should remember to disable it when you have finished and ensure the file is deleted.

Share this:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Google+ (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Published: December 19, 2012 | Last updated: October 15, 2015

Information

Component:
Letters: O

Recent plugin updates

oik-blocks v0.2.0 

oik-blocks v0.2.0 now offers the Block info block. Upgrade to replace the Block icon block with the Block info block in the Block catalogues.

 ...
oik v3.3.0 

Update to oik v3.3.0 for a fix to the [paypal] shortcode.

 ...
oik-batch v1.0.0 oik-batch v1.0.0 adds support for updates directly from Git repositories. Upgrade to support maintenance of Git based plugins and themes from the WordPress dashboard. ...
oik-libs v0.1.0 oik-libs v0.1.0 WordPress plugin is synchronized with oik v3.2.9 and oik-batch v1.0.0 ...
oik-types v2.0.0-alpha-20181019 oik-types v2.0.0-alpha-20181019 supports PHP 7.2 ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: oikplug@oik-plugins.com

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2019. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins
WordPress 5.0.3. PHP: 7.2.15. Memory limit: 768M