{"id":54581,"date":"2017-02-23T08:00:31","date_gmt":"2017-02-23T08:00:31","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/debug-tool\/"},"modified":"2018-07-10T11:59:20","modified_gmt":"2018-07-10T11:59:20","slug":"debug-tool","status":"closed","type":"plugin","link":"https:\/\/pt.wordpress.org\/plugins\/debug-tool\/","author":13603801,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2","stable_tag":"2.2","tested":"4.9.29","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Debug Tool","header_author":"Eugen Bobrowski","header_description":"","assets_banners_color":"3b3b3b","last_updated":"2018-07-10 11:59:20","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=UUWASQ4U7BNUE","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/debug-tool\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2109,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1602937","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1602937","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":"1883308","resolution":"1544x500","location":"assets"},"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1883308","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1","1.1.1","1.2","2.1","2.2"],"block_files":[],"assets_screenshots":{"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1907052","resolution":"3","location":"plugin"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1907052","resolution":"2","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1907052","resolution":"1","location":"plugin"},"screenshot-4.gif":{"filename":"screenshot-4.gif","revision":"1907052","resolution":"4","location":"plugin"}},"screenshots":{"1":"Page with debug bar","2":"Error modal","3":"Queries modal","4":"Howto open and close bar"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[94,22216,2275,4057,23825],"plugin_category":[59],"plugin_contributors":[81855],"plugin_business_model":[],"class_list":["post-54581","plugin","type-plugin","status-closed","hentry","plugin_tags-debug","plugin_tags-debugger","plugin_tags-developer","plugin_tags-queries","plugin_tags-wp-debug","plugin_category-utilities-and-tools","plugin_contributors-eugenbobrowski","plugin_committers-eugenbobrowski"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/debug-tool_3b3b3b.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/debug-tool\/trunk\/screenshot-1.png?rev=1907052","caption":"Page with debug bar"},{"src":"https:\/\/ps.w.org\/debug-tool\/trunk\/screenshot-2.png?rev=1907052","caption":"Error modal"},{"src":"https:\/\/ps.w.org\/debug-tool\/trunk\/screenshot-3.png?rev=1907052","caption":"Queries modal"},{"src":"https:\/\/ps.w.org\/debug-tool\/trunk\/screenshot-4.gif?rev=1907052","caption":"Howto open and close bar"}],"raw_content":"<!--section=description-->\n<p>This is tool that help developers and administrators easier getting information.<\/p>\n\n<p>The debug bar is available on front side for everyone if WP_DEBUG is true. If you are admin you can open bar on any page. Hover the mouse cursor to bottom right corner and click on<\/p>\n\n<h4>Features:<\/h4>\n\n<ul>\n<li>Implementation time counter<\/li>\n<li>Queries counter<\/li>\n<li>Queries list (sortable)<\/li>\n<li>Memory counter<\/li>\n<li>Segment checker<\/li>\n<li>Cron jobs information<\/li>\n<li>WP_Cache counter<\/li>\n<li>phpinfo() window<\/li>\n<li>References menu<\/li>\n<li>Image Puller that provide pull missed images from production to develop site<\/li>\n<\/ul>\n\n<p><strong>Implementation time counter<\/strong><\/p>\n\n<p>It count the time from plugin loaded action to debug bar.\nIt does not consider processes that implement before and during the plugins are loading.<\/p>\n\n<p><strong>Queries counter<\/strong><\/p>\n\n<p>It count all what is queried via $wpdb object.<\/p>\n\n<p><strong>Queries list<\/strong><\/p>\n\n<p>It show all what is queried via $wpdb object.<\/p>\n\n<p>The <code>SAVEQUERIES<\/code> constant must be defined as <code>true<\/code>.<\/p>\n\n<p><strong>Memory counter<\/strong><\/p>\n\n<p>Returns the amount of memory, in bytes, that's currently being allocated to your PHP script.<\/p>\n\n<p><strong>Segment checker<\/strong><\/p>\n\n<p>Also you can check any segment of your code.<\/p>\n\n<pre><code>do_action('check_segment', 'segment_1');\n\n\/\/do somethisng\n\ndo_action('check_segment', 'segment_1');\n<\/code><\/pre>\n\n<p>The code below returns in debug bar new item like this:<\/p>\n\n<blockquote>\n  <p>segment_1: 14.14\/3\/1<\/p>\n<\/blockquote>\n\n<p>The digits there ara time, queries and how many times this code was implemented.<\/p>\n\n<p><strong>References menu<\/strong><\/p>\n\n<p>The default one item of this menu is Errors. It shows notices and warnings including case when <code>WP_DEBUG<\/code> is false.<\/p>\n\n<p>And also you can easy add your item to this menu and print there any var_dump or anything else.<\/p>\n\n<pre><code>add_filter('wp_debug_refs', 'my_debug_tool_ref');\n\nfunction my_debug_tool_ref ($refs) {\n\n    global $post;\n\n    $refs['my_ref_id'] = array(\n        'title' =&gt; 'My ref',\n        'content' =&gt; '&lt;b&gt;My ref&lt;\/b&gt;' . var_export($post, true),\n    );\n    return $refs;\n}\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Debug Tool is easy to install and configure.<\/p>\n\n<ol>\n<li>Upload the <code>easyazon<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set WP_DEBUG constant if you want to see the bar at front side when you are logged out.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.2<\/h4>\n\n<p><em>Release Date - 30th May, 2018<\/em><\/p>\n\n<ul>\n<li>Change visibility logic. Hide by default<\/li>\n<li>Add new tool Image Puller that provide pull missed images from production to develop site.<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<p><em>Release Date - 23th May, 2018<\/em><\/p>\n\n<ul>\n<li>Remove hotkey combination<\/li>\n<li>Add hidden button for open\/close bar<\/li>\n<li>Use coockies to save bar visible status<\/li>\n<li>Add feature to define WP_DEBUG as  true via cookie<\/li>\n<li>Add settings to switch features on\/off<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<p><em>Release Date - 18th April, 2018<\/em><\/p>\n\n<ul>\n<li>Add page stat feature<\/li>\n<li>Set new key combination to Ctrl+Alt+D<\/li>\n<li>Add Cron &amp; Actions panel<\/li>\n<li>Fix bug with Queries list<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<p><em>Release Date - 18th March, 2017<\/em><\/p>\n\n<ul>\n<li>Add sorting to queries table<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<p><em>Release Date - 1st March, 2017<\/em><\/p>\n\n<ul>\n<li>Add queries reference tab<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<p><em>Release Date - 15th February, 2017<\/em><\/p>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><p>Debug Tool is easy to install and configure.<\/p>\n\n<ol>\n<li>Upload the <code>easyazon<\/code> directory to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set WP_DEBUG constant if you want to see the bar at front side when you are logged out.<\/li>\n<\/ol><\/dd>\n\n<\/dl>","raw_excerpt":"Show helpful debug bar at front and admin side. Tool for developers.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/54581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=54581"}],"author":[{"embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/eugenbobrowski"}],"wp:attachment":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=54581"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=54581"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=54581"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=54581"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=54581"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=54581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}