{"id":114033,"date":"2020-01-22T21:05:06","date_gmt":"2020-01-22T21:05:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/dodebug\/"},"modified":"2020-09-21T17:45:59","modified_gmt":"2020-09-21T17:45:59","slug":"dodebug","status":"publish","type":"plugin","link":"https:\/\/bal.wordpress.org\/plugins\/dodebug\/","author":17454176,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1","stable_tag":"1.1","tested":"5.3.21","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"DoDebug","header_author":"WPDO","header_description":"Just a debug tool for theme\/plugin developers.","assets_banners_color":"","last_updated":"2020-09-21 17:45:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":977,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","changelog"],"tags":{"1.0":{"tag":"1.0","author":"wpdo5ea","date":"2020-01-22 21:04:53"},"1.1":{"tag":"1.1","author":"wpdo5ea","date":"2020-09-21 17:45:59"}},"upgrade_notice":[],"ratings":[],"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"Plugin Settings"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[23056],"plugin_category":[],"plugin_contributors":[175324],"plugin_business_model":[],"class_list":["post-114033","plugin","type-plugin","status-publish","hentry","plugin_tags-debug-tool","plugin_contributors-wpdo","plugin_committers-wpdo5ea"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dodebug.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This plugin can log the breakpoints into the file.<\/p>\n\n<ul>\n<li>To check the log, ssh to server, run <code>tail -f \/your_wordpress_path\/wp-content\/debug.log<\/code> to watch the output.<\/li>\n<\/ul>\n\n<h4>API<\/h4>\n\n<ul>\n<li><p>To log, use <code>defined( 'debug' ) &amp;&amp; debug( 'your content to log' );<\/code> in your plugin\/theme code.<\/p><\/li>\n<li><p>To log only in advanced debug level, use <code>defined( 'debug' ) &amp;&amp; debug2( 'your content to log' );<\/code>.<\/p><\/li>\n<li><p>To log with backtrace depth = 4, use <code>defined( 'debug' ) &amp;&amp; debug( 'your content to log', 4 );<\/code>.<\/p><\/li>\n<li><p>To append one variable (usually an array), use <code>defined( 'debug' ) &amp;&amp; debug( 'your content to log', $var_to_check );<\/code>.<\/p><\/li>\n<\/ul>\n\n<!--section=changelog-->\n<h4>1.1<\/h4>\n\n<ul>\n<li>More accurate to detect IP.<\/li>\n<\/ul>\n\n<h4>1.0 - Jan 22 2020<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"Just one debug tool for developers.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/114033","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=114033"}],"author":[{"embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpdo5ea"}],"wp:attachment":[{"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=114033"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=114033"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=114033"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=114033"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=114033"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/bal.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=114033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}