dbug
dbug() dlog() ddbug() dbug Basics Debugging Call with up to three arguments: <?php // output a variable dbug( $var ); // output a variable with a title dbug( $debug, 'Testing' ); // output a variable with a title and information from the last 6 steps from debug_backtrace dbug( $somevalue, 'Trying to
dbug() dlog() ddbug()
dbug Basics
Debugging
Call with up to three arguments: <?php // output a variable dbug( $var );
// output a variable with a title dbug( $debug, 'Testing' ); // output a variable with a title and information from the last 6 steps from debug_backtrace dbug( $somevalue, 'Trying to figure some shit out', 6 ); }
or use ddbug to dbug and die.
Error Logging
Call with up to three arguments: <?php // log a variable dlog( $val );
// log a variable with a title dlog( $buggy, 'what is $buggy' ); // log a variable with a title into the file 'bug_trap' dlog( $somevalue, 'im desperate', 'bug_trap' ); }
Production / Development Environments
you should have them
- 01Place entire /dbug/ directory to the /wp-content/plugins/ directory
- 02Activate the plugin through the ‘Plugins’ menu in WordPress
- 03Set logging to screen or to to files, and the larget file size for logs
- 04Write some code
- 05Can’t figure something out? dbug( $var )
- 06Need to write yourself a note? dbug( $var, ‘this is super cool’ )
- 07How many lines of backtrace do you need? dbug( $var, ‘oh wow!’, 25 )
- 08Want to dbug and die? Use ddbug()
Frequently asked questions.
Installation Instructions
Place entire /dbug/ directory to the /wp-content/plugins/ directory Activate the plugin through the ‘Plugins’ menu in WordPress Set logging to screen or to to files, and the larget file size for logs Write some code Can’t figure something out? dbug( $var ) Need to write yourself a note? dbug( $var, ‘this is super cool’ ) How many lines of backtrace do you need? dbug( $var, ‘oh wow!’, 25 ) Want to dbug and die? Use ddbug()