WP Manifestindependent plugin directory
manifest / developer / kint-debugger

Kint Debugger archived

Simple WP wrapper plugin for Kint PHP debugger

by smithfield-studio · github.com/smithfield-studio/kint-debugger

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/smithfield-studio/kint-debugger/archive/refs/heads/main.zip

Readme

Kint Debugger

Dump variables and traces in an organized and interactive display. Integrates seamlessly with Debug Bar.

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.

Basic Usage

d($var);
global $post;
d($post);
global $post;
$term_list = wp_get_post_terms($post->ID, 'my_taxonomy', ['fields' => 'all']);
d($term_list);
ddd($term_list); // debug + die()

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

  • dump_wp_query()
  • dump_wp()
  • dump_post()

<?php dump_post(); ?>

<?php add_action( 'wp_head', 'dump_post' ); ?>

Changelog

1.0.0

  • Fork updated kint-debugger with php 7.4 support
  • Rip out most of it, use composer to load latest version of Kint

Read the full README on GitHub →

Releases

TagPublished
v1.0.0 Feb 3, 2021

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.