Wrapper around Query Monitor to simplify the integration
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
QM_Collector_WPBP_Debug.php
QM_Collector_WPBP_Debug_Output.php
README.md
composer.json
debug.php

README.md

Debug

License Downloads

This package is a wrapper to Query Monitor for:

  • Create a custom alternative panel for log stuff inside Query Monitor
  • Add a timer method that use the Query Monitor internals
  • Add a method to print in the internal log panel of Query Monitor

Install

composer require wpbp/debug:dev-master

Example

$debug = new WPBP_Debug( __( 'Name of the panel', 'your-textdomain' ) );
$debug->log( __( 'Plugin Loaded', 'your-textdomain' ) );
$debug->qm_log( __( 'Error inside the log panel of Query Monitor', 'your-textdomain' ), 'error' );
$debug->qm_timer( 'profile_that_callback', function () { echo 'I need to be profiled!'; } );