Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 6, 2023. It is now read-only.
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple WP wrapper plugin for Kint PHP debugger

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.