Skip to content

Releases: KnowTheCode/debug-toolkit

1.0.0 Beta Release

08 Mar 01:18
Compare
Choose a tag to compare
1.0.0 Beta Release Pre-release
Pre-release

This beta release is ready for testers to check out the following functionality:

  • Whoops container - try putting does_not_exists(); in your code to see if it appears.
  • VarDumper tool - a simple variable dumper when you only want to see the value:
    Try these functions and provide feedback. Put this code in your theme's functions.php file:
add_action( 'loop_start', function() {
        global $wp_query;

	$array = [
		'ID'    => get_the_ID(),
		'title' => get_the_title(),
	];

	vd( $array );
        vddd( $wp_query );
} );
  • Kint tool - more features such as call stack, memory size, and more.
add_action( 'loop_start', function() {
        global $wp_query;

	$array = [
		'ID'    => get_the_ID(),
		'title' => get_the_title(),
	];

	d( $array );

	s( $array );

        ddd( $wp_query );
} );

Feedback is greatly appreciated.