跳到内容

Kint PHP Debugger

v2.0.2

Tonya Mork · 2015年7月28日 上架

Kint is a modern and powerful PHP debugging helper, which requires zero-setup and replaces var_dump(), print_r() and debug_backtrace().

正在使用
90+
评分
5.0 / 5
累计下载
1.4 万
最近更新
2019年3月12日
12 条评价需要 WordPress 3.5+已测试到 5.1.29PHP 5.3+

贡献者

截图

An example of what gets rendered in the browser when using 'd( $var )'.
An example of what gets rendered in the browser when using 'd( $var )'.
Profile example from Kint.
Profile example from Kint.
"KINT ACTIVE" indicator in the WordPress admin bar.
"KINT ACTIVE" indicator in the WordPress admin bar.

This WordPress plugin is a wrapper for the Kint PHP Debugger utility version 1.x. Now instead of using var_dump() or print_r(), you simply use d() with zero, nadda, no formatting required.

Use this tool when you are debugging your website, in place of var_dump(), print_r() and debug_backtrace().

Handy Tools

Some handy tools just for the PHP Developer:

  • d( $var ); to render a collapsible UI container which displays your variable data in “the most informative way”
  • ddd( $var ); same as d() except that it also executes die() to halt execution.

Here are some variations of d() to give you the display you want:

  • ~d( $var ); outputs in plain text format.
  • +d( $var ); disregards depth level limits and outputs everything
  • !d( $var ); shows expanded rich output
  • -d( $var ); attempts to ob_clean() the previous output (dump something inside of HTML)

Profiler

Kint even includes a naïve profiler, which can help you analyze which blocks of code take longer than others:

Kint::dump( microtime() ); // just pass microtime()
sleep( 1 );
Kint::dump( microtime(), 'after sleep(1)' );
sleep( 2 );
ddd( microtime(), 'final call, after sleep(2)' );

See screenshot 2 for what is rendered out in your browser.

Admin Bar

“KINT ACTIVE” indicator displays in the WordPress admin bar to alert you when the plugin is active.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums