Plugin info

Total downloads: 30,589
Active installs: 2,000
Total reviews: 14
Average rating: 4.8
Support threads opened: 1
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 6
Last updated: 1/18/2019 (2539 days ago)
Added to WordPress: 2/15/2012 (13 years old)
Minimum WordPress version: 2.5
Tested up to WordPress version: 5.0.18
Minimum PHP version: f

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 2539 days ago • Support resolved 0% • 14 reviews

14/100

Is Kint Debugger abandoned?

Possibly abandoned (last update 2539 days ago).

Compatibility

Requires WordPress: 2.5
Tested up to: 5.0.18
Requires PHP: f

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

Kint PHP Debugger
Rating 5.0/5 (12 reviews)Active installs 100
PCo Kint
Rating 5.0/5 (1 reviews)Active installs 10

Description

This plugin is up for adoption.

Kint Debugger is a simple wrapper for Kint, a debugging tool to output information about variables and traces in a styled, collapsible format that makes understanding deep arrays and objects easier.

No more adding PRE tags before print_r or var_dump!

Kint Debugger works well with the Debug Bar plugin by creating its own panel to display your debug results.

Basic Usage


Examples:

ID, 'my_taxonomy', array( 'fields' => 'all' ) );
    d( $term_list );
?>

Kint Debugger also provides some helper functions for dumping variables that are frequently needed.

  • dump_wp_query()
  • dump_wp()
  • dump_post()
  • dump_this( $var, $inline = false ) – explained below

Examples:




Obviously, if this plugin is not active, calls to the helper functions will cause errors.

Your Own Functions

If you are dumping the same information in different places, consider writing your own helper functions in your theme’s functions file or an mu-plugin. For example:

ID, 'my_taxonomy', array( 'fields' => 'all' ) );
     d( $term_list  );
}
?>

Then at strategic points in your theme or plugin:


With Debug Bar

By default, when Debug Bar is installed and active, Kint Debugger will send d() output to its Debug Bar panel.

To print debug output inline instead, as if Debug Bar was not active, declare the constant KINT_TO_DEBUG_BAR in your config.php (or really anywhere before your d() call):

define( 'KINT_TO_DEBUG_BAR', false );

Or to print a specific dump inline, use a helper function with the parameter $inline. The generic dump_this() takes $inline as the second parameter.

Examples:



ID, 'my_taxonomy', array( 'fields' => 'all' ) );
    dump_this( $term_list , true );
?>

Kint Debugger overrides Kint’s d() function in order to buffer its output for Debug Bar. If you already have a modified d() function, you need to prevent the override in one of two ways.

  1. Move your modified d() function to an mu-plugin. Kint Debugger checks if the function exists before declaring it so putting yours in an mu-plugin is the only way to ensure it exists first.
  2. Declare KINT_TO_DEBUG_BAR as described above.

Restricting Output

To restrict visibility, use the kint_debug_display filter. For example, to prevent non-admins from seeing the debug output:

add_filter( 'kint_debug_display', function( $allow ) { return is_super_admin(); } );

Try these plugins too

  • What The File – Identify template files without fail.
  • Debug This – Peek under the hood with sixty debugging reports just one click away.

Installation

  1. Go to Plugins > Add New.
  2. Search for “kint debugger”.
  3. Click “Install Now”.

OR

  1. Download the zip file.
  2. Upload the zip file via Plugins > Add New > Upload.

Activate the plugin and start debugging!

Frequently Asked Questions

I have called a debug function, but I can’t find the output.

If Debug Bar is installed and active, your debug results will be displayed on the “Kint Debugger” panel.

Otherwise, your debug results will be inserted into the current page’s HTML.

Can I change the style of the output?

Currently, the Kint library includes some themes and a config file. Feel free to configure as you see fit. In order to leave the Kint library intact, the plugin does not provide additional configuration.

Fortunately, the developers of Kint are working on version 2 which will make it easier to configure and extend it.

Review feed

No reviews available

Screenshots

  1. Kint debugging output is informative, organized, and collapsible.

    Kint debugging output is informative, organized, and collapsible.

  2. Kint includes a backtrace.

    Kint includes a backtrace.

  3. Any section can be isolated in a new tab.

    Any section can be isolated in a new tab.

  4. Kint integrates with Debug Bar.

    Kint integrates with Debug Bar.

Changelog

1.2

  • Fix bug when adding Debug Bar panel.

1.1.1

  • Fix bug when Query Monitor is installed but Debug Bar is not.

1.1

  • Fix integration with Debug Bar
  • Add new helper function dump_this()
  • Add KINT_TO_DEBUG_BAR check
  • Add kint_debug_display filter

1.0

  • Upgrade Kint library
  • Move Kint to vendor folder

0.2

  • Add Debug Bar support

0.1

  • Add Kint 0.3.2 and create dump_wp_query(), dump_wp(), and dump_post() functions