{"id":8111,"date":"2010-02-15T18:02:47","date_gmt":"2010-02-15T18:02:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dbug\/"},"modified":"2018-01-29T21:20:17","modified_gmt":"2018-01-29T21:20:17","slug":"dbug","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/dbug\/","author":4178674,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.9.8","stable_tag":"trunk","tested":"4.9.29","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"dbug","header_author":"pinecone-dot-website, postpostmodern","header_description":"","assets_banners_color":"","last_updated":"2018-01-29 21:20:17","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/cash.me\/$EricEaglstun","header_plugin_uri":"https:\/\/github.com\/pinecone-dot-website\/dbug","header_author_uri":"https:\/\/rack.and.pinecone.website\/","rating":1,"author_block_rating":0,"active_installs":10,"downloads":2234,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>dunno<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"dbug is delicious <code>\/trunk\/screenshot-1.png<\/code>","2":"strict error reporting is great <code>\/trunk\/screenshot-2.png<\/code>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,14925],"plugin_category":[59],"plugin_contributors":[91208,91207],"plugin_business_model":[],"class_list":["post-8111","plugin","type-plugin","status-publish","hentry","plugin_tags-debug","plugin_tags-error-log","plugin_category-utilities-and-tools","plugin_contributors-pinecone-dot-io","plugin_contributors-postpostmodern","plugin_committers-bsratspekdotorg","plugin_committers-pinecone-dot-io","plugin_committers-postpostmodern"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dbug.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>dbug() dlog() ddbug()<\/p>\n\n<h3>dbug Basics<\/h3>\n\n<h4>Debugging<\/h4>\n\n<p>Call with up to three arguments:\n    &lt;?php\n        \/\/ output a variable\n        dbug( $var );<\/p>\n\n<pre><code>    \/\/ output a variable with a title           \n    dbug( $debug, 'Testing' );\n\n    \/\/ output a variable with a title and information from the last 6 steps from debug_backtrace\n    dbug( $somevalue, 'Trying to figure some shit out', 6 );\n}\n<\/code><\/pre>\n\n<p>or use <code>ddbug<\/code> to dbug and die.<\/p>\n\n<h4>Error Logging<\/h4>\n\n<p>Call with up to three arguments:\n    &lt;?php\n        \/\/ log a variable\n        dlog( $val );<\/p>\n\n<pre><code>    \/\/ log a variable with a title\n    dlog( $buggy, 'what is $buggy' );\n\n    \/\/ log a variable with a title into the file 'bug_trap' \n    dlog( $somevalue, 'im desperate', 'bug_trap' );\n}\n<\/code><\/pre>\n\n<h4>Production \/ Development Environments<\/h4>\n\n<p>you should have them<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Place entire \/dbug\/ directory to the \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set logging to screen or to to files, and the larget file size for logs<\/li>\n<li>Write some code<\/li>\n<li>Can't figure something out? dbug( $var )<\/li>\n<li>Need to write yourself a note? dbug( $var, 'this is super cool' )<\/li>\n<li>How many lines of backtrace do you need? dbug( $var, 'oh wow!', 25 )<\/li>\n<li>Want to dbug and die? Use ddbug()<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Place entire \/dbug\/ directory to the \/wp-content\/plugins\/ directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set logging to screen or to to files, and the larget file size for logs<\/li>\n<li>Write some code<\/li>\n<li>Can't figure something out? dbug( $var )<\/li>\n<li>Need to write yourself a note? dbug( $var, 'this is super cool' )<\/li>\n<li>How many lines of backtrace do you need? dbug( $var, 'oh wow!', 25 )<\/li>\n<li>Want to dbug and die? Use ddbug()<\/li>\n<\/ol><\/dd>\n<dt>This doesn't do anything!<\/dt>\n<dd><p>well<\/p><\/dd>\n<dt>Why did you create dbug?<\/dt>\n<dd><p>Because I cant write code without it<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.9.8<\/h4>\n\n<p>change create_function for php &gt;= 7.2<\/p>\n\n<h4>1.9.5<\/h4>\n\n<p>require php 5.4<\/p>\n\n<h4>1.9.3<\/h4>\n\n<p>composer tweaks<\/p>\n\n<h4>1.9.2<\/h4>\n\n<p>Add composer info, autoload<\/p>\n\n<h4>1.9<\/h4>\n\n<p>Log viewer in admin<\/p>\n\n<h4>1.89<\/h4>\n\n<p>Slightly better class method information<\/p>\n\n<h4>1.88<\/h4>\n\n<p>Moved admin styles inline because of reasons<\/p>\n\n<h4>1.87<\/h4>\n\n<p>Improved default log filesize logic, added ddlog()<\/p>\n\n<h4>1.86<\/h4>\n\n<p>Registered css for mu-plugins correctly<\/p>\n\n<h4>1.85<\/h4>\n\n<p>Fixed offset in backtrace<\/p>\n\n<h4>1.81<\/h4>\n\n<p>Fixed sloppy error which disabled admin screen :(<\/p>\n\n<h4>1.8<\/h4>\n\n<p>Code cleanup, mostly in backtrace<\/p>\n\n<h4>1.74<\/h4>\n\n<p>Whoops, didn't add _htaccess.php to SVN :-p<\/p>\n\n<h4>1.73<\/h4>\n\n<p>Fixed creating .htaccess file when using mu-plugins<\/p>\n\n<h4>1.72<\/h4>\n\n<p>Set dbug to never show on screen if logs are turned on, added REQUEST_URI to all logs<\/p>\n\n<h4>1.7<\/h4>\n\n<p>Moved admin settings into separate class, cleanup of core code<\/p>\n\n<h4>1.55<\/h4>\n\n<p>Fixed using float as argument $k in dbug<\/p>\n\n<h4>1.54<\/h4>\n\n<p>Fixed deprecated argument in add_options_page()<\/p>\n\n<h4>1.53<\/h4>\n\n<p>Fixed a bug in detecting MU<\/p>\n\n<h4>1.52<\/h4>\n\n<p>Fixed a bug in logging integer keyed arrays<\/p>\n\n<h4>1.5<\/h4>\n\n<p>Changed some things, I don't remember what<\/p>\n\n<h4>1.4<\/h4>\n\n<p>Better handling for MU \/ single blog. \nAll options and settings for MU are now global, saved in blog #1 database.<\/p>\n\n<h4>1.32<\/h4>\n\n<p>Added ddbug() (dbug and die)<\/p>\n\n<h4>1.31<\/h4>\n\n<p>fixed behavior in error handlers to return false, try \/catch blocks work as expected.<\/p>\n\n<h4>1.2<\/h4>\n\n<p>last bit of namespace pollution cleaned up\ncheck for PHP 5\ncss tweaks<\/p>\n\n<h4>1.1<\/h4>\n\n<p>added preference for log filesize<\/p>\n\n<h4>1.08<\/h4>\n\n<p>code cleanup, reducing namespace pollution<\/p>\n\n<h4>1.0<\/h4>\n\n<p>yes, its here<\/p>","raw_excerpt":"Simple error debugging and logging functions.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/8111","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=8111"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/postpostmodern"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=8111"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=8111"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=8111"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=8111"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=8111"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=8111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}