Home Plugins dbug
dbug logo

dbug

by postpostmodern on WordPress.org

Simple error debugging and logging functions.

(1)

dbug() dlog() ddbug()

dbug Basics

Debugging

Call with up to three arguments:
// 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:
// 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

Active installations10+
Weekly downloads
8-27.27%
Version1.9.8
Last updated1/29/2018
WordPress version4.0
Tested up to4.9.26
Tags
debugerror log