=== dbug === Contributors: postpostmodern, pinecone-dot-io Donate link: https://cash.me/$EricEaglstun Tags: debug, error log Requires at least: 4.0 Tested up to: 4.9.2 Stable tag: trunk, (*1)
Simple error debugging and logging functions., (*2)
== Description == dbug() dlog() ddbug(), (*3)
== Installation == 1. Place entire /dbug/ directory to the /wp-content/plugins/ directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Set logging to screen or to to files, and the larget file size for logs 1. Write some code 1. Can't figure something out? dbug( $var ) 1. Need to write yourself a note? dbug( $var, 'this is super cool' ) 1. How many lines of backtrace do you need? dbug( $var, 'oh wow!', 25 ) 1. Want to dbug and die? Use ddbug(), (*4)
== Changelog == = 1.9.8 = change create_function for php >= 7.2, (*5)
= 1.9.5 = require php 5.4, (*6)
= 1.9.3 = composer tweaks, (*7)
= 1.9.2 = Add composer info, autoload, (*8)
= 1.9 = Log viewer in admin, (*9)
= 1.89 = Slightly better class method information, (*10)
= 1.88 = Moved admin styles inline because of reasons, (*11)
= 1.87 = Improved default log filesize logic, added ddlog(), (*12)
= 1.86 = Registered css for mu-plugins correctly, (*13)
= 1.85 = Fixed offset in backtrace, (*14)
= 1.81 = Fixed sloppy error which disabled admin screen :(, (*15)
= 1.8 = Code cleanup, mostly in backtrace, (*16)
= 1.74 = Whoops, didn't add _htaccess.php to SVN :-p, (*17)
= 1.73 = Fixed creating .htaccess file when using mu-plugins, (*18)
= 1.72 = Set dbug to never show on screen if logs are turned on, added REQUEST_URI to all logs, (*19)
= 1.7 = Moved admin settings into separate class, cleanup of core code, (*20)
= 1.55 = Fixed using float as argument $k in dbug, (*21)
= 1.54 = Fixed deprecated argument in add_options_page(), (*22)
= 1.53 = Fixed a bug in detecting MU, (*23)
= 1.52 = Fixed a bug in logging integer keyed arrays, (*24)
= 1.5 = Changed some things, I don't remember what, (*25)
= 1.4 = Better handling for MU / single blog. All options and settings for MU are now global, saved in blog #1 database., (*26)
= 1.32 = Added ddbug() (dbug and die), (*27)
= 1.31 = fixed behavior in error handlers to return false, try /catch blocks work as expected., (*28)
= 1.2 = last bit of namespace pollution cleaned up check for PHP 5 css tweaks, (*29)
= 1.1 = added preference for log filesize, (*30)
= 1.08 = code cleanup, reducing namespace pollution, (*31)
= 1.0 = yes, its here, (*32)
== Upgrade Notice == dunno, (*33)
== Frequently Asked Questions == = This doesn't do anything! = well, (*34)
= Why did you create dbug? = Because I cant write code without it, (*35)
== Screenshots ==
1. dbug is delicious /trunk/screenshot-1.png
1. strict error reporting is great /trunk/screenshot-2.png
, (*36)
== dbug Basics ==, (*37)
= Debugging = Call with up to three arguments: `<?php // output a variable dbug( $var );, (*38)
// 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 );
}`, (*39)
or use ddbug
to dbug and die., (*40)
= Error Logging = Call with up to three arguments: `<?php // log a variable dlog( $val );, (*41)
// 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' );
}`, (*42)
= Production / Development Environments = you should have them, (*43)