DoDebug

DoDebug Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 504 downloads
DoDebug Icon

Try plugin: DoDebug

We'll create fresh WordPress site with DoDebug installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About DoDebug

Just one debug tool for developers.

0


0


0


0


0

updated: 4 years ago
since: 4 years ago
author: WPDO

Description

This plugin can log the breakpoints into the file.

  • To check the log, ssh to server, run tail -f /your_wordpress_path/wp-content/debug.log to watch the output.

API

  • To log, use defined( 'debug' ) && debug( 'your content to log' ); in your plugin/theme code.

  • To log only in advanced debug level, use defined( 'debug' ) && debug2( 'your content to log' );.

  • To log with backtrace depth = 4, use defined( 'debug' ) && debug( 'your content to log', 4 );.

  • To append one variable (usually an array), use defined( 'debug' ) && debug( 'your content to log', $var_to_check );.