dbug

dbug Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 1,710 downloads
dbug Icon

Try plugin: dbug

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

Takes ~10 seconds to install.

About dbug

Simple error debugging and logging functions.

0


0


0


0


1

updated: 6 years ago
since: 14 years ago

Description

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