Debug Tool

Debug Tool Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 1,592 downloads
Debug Tool Icon

Try plugin: Debug Tool

We'll create fresh WordPress site with Debug Tool installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About Debug Tool

Show helpful debug bar at front and admin side. Tool for developers.

0


0


0


0


0

updated: 6 years ago
since: 7 years ago
author: Eugen Bobrowski

Description

This is tool that help developers and administrators easier getting information.

The debug bar is available on front side for everyone if WP_DEBUG is true. If you are admin you can open bar on any page. Hover the mouse cursor to bottom right corner and click on

Features:

  • Implementation time counter
  • Queries counter
  • Queries list (sortable)
  • Memory counter
  • Segment checker
  • Cron jobs information
  • WP_Cache counter
  • phpinfo() window
  • References menu
  • Image Puller that provide pull missed images from production to develop site

Implementation time counter

It count the time from plugin loaded action to debug bar.
It does not consider processes that implement before and during the plugins are loading.

Queries counter

It count all what is queried via $wpdb object.

Queries list

It show all what is queried via $wpdb object.

The SAVEQUERIES constant must be defined as true.

Memory counter

Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.

Segment checker

Also you can check any segment of your code.

do_action('check_segment', 'segment_1');

//do somethisng

do_action('check_segment', 'segment_1');

The code below returns in debug bar new item like this:

segment_1: 14.14/3/1

The digits there ara time, queries and how many times this code was implemented.

References menu

The default one item of this menu is Errors. It shows notices and warnings including case when WP_DEBUG is false.

And also you can easy add your item to this menu and print there any var_dump or anything else.

add_filter('wp_debug_refs', 'my_debug_tool_ref');

function my_debug_tool_ref ($refs) {

    global $post;

    $refs['my_ref_id'] = array(
        'title' => 'My ref',
        'content' => '<b>My ref</b>' . var_export($post, true),
    );
    return $refs;
}