wpbp/debug

Add your plugin to Query Monitor

Maintainers

Package info

github.com/WPBP/Debug

pkg:composer/wpbp/debug

Statistics

Installs: 11 042

Dependents: 0

Suggesters: 0

Stars: 15

Open Issues: 1

1.1.4 2024-07-11 10:36 UTC

This package is auto-updated.

Last update: 2026-03-11 14:18:45 UTC


README

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!'; } );