{"id":3441,"date":"2008-07-25T20:23:46","date_gmt":"2008-07-25T20:23:46","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-pear-debug\/"},"modified":"2015-12-05T05:55:34","modified_gmt":"2015-12-05T05:55:34","slug":"wp-pear-debug","status":"publish","type":"plugin","link":"https:\/\/ru.wordpress.org\/plugins\/wp-pear-debug\/","author":167832,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.5","stable_tag":"1.5","tested":"4.3.34","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"wp pear debug","header_author":"Garvin Casimir","header_description":"","assets_banners_color":"","last_updated":"2015-12-05 05:55:34","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":6368,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.3","1.4","1.4.1","1.4.2","1.4.5","1.4.6","1.4.7","1.4.8","1.4.9","1.5"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1567217","resolution":"2","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1567217","resolution":"1","location":"plugin"}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[70109,94,2679,34348,70108],"plugin_category":[54,59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-3441","plugin","type-plugin","status-publish","hentry","plugin_tags-database-debug","plugin_tags-debug","plugin_tags-debugging","plugin_tags-pear","plugin_tags-php_debug","plugin_category-security-and-spam-protection","plugin_category-utilities-and-tools","plugin_committers-silasco"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-pear-debug.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-pear-debug\/trunk\/screenshot-1.jpg?rev=1567217","caption":""},{"src":"https:\/\/ps.w.org\/wp-pear-debug\/trunk\/screenshot-2.jpg?rev=1567217","caption":""}],"raw_content":"<!--section=description-->\n<p>This plugin incorporates the pear php_debug library into wordpress.<\/p>\n\n<p>I started creating a new website around wordpress and noticed that there was no way to quickly access debug information so I integrated this class\ninto wordpress for quick easy debugging when developing or experiencing problems on your wordpress website.<\/p>\n\n<p>Please feel free to ping me on twitter if you have a question.<\/p>\n\n<ul>\n<li>Features <\/li>\n<\/ul>\n\n<p>This plugin unlike most operates from within a class.\nThere are several options which can be set in the admin section<\/p>\n\n<ol>\n<li>Debug Status: Overall\nthis option allows you to enable and disable debugging entirely<\/li>\n<li>Display Debugging for: Guests\nThis option allows you to enable debugging when no user is logged in<\/li>\n<li>The rest are a list of roles found in the sytem, eg. editor, contributor, administrator\nFor each you have the following options: Admin &amp; Front End, Admin Only, Front End Only, Disable<\/li>\n<li>The plugin shows queries that were run by wordpress\n    Please note that some queries run before the plugin is initialized. to ensure most if not all queries get recorded see step 4 in installation section. v1.4.1 shows not only the query but the time taken by the query and the function which called the query.<\/li>\n<li><p>You can easly add debug information to the debugger by making use of several functions<\/p>\n\n<pre><code>&lt;?php \n    \/\/For advanced use. \n    \/\/Direct access to instance of debugger\n    $oDebug = wp_pear_debug::get();     \n    $oDebug-&gt;add($variable); \/\/add variable to debug\n    $oDebug-&gt;dump($object,$varname); \/\/var_dump an array or object. $varname optional\n    $oDebug-&gt;queryRel($info); \/\/add query related info\n    $oDebug-&gt;error($info); \/\/add user error\n    \/\/more options available in the pear::php_debug documentation\n\n    \/\/With v1.2 you have access to several wrapper functions\n    \/\/Enough for most people\n            wp_pear_debug::add();\n            wp_pear_debug::dump();\n            wp_pear_debug::error();\n    \/\/if you run this query with wpdb\n    \/\/It will probably appear anyways.\n            wp_pear_debug::query();\n\n\n ?&gt;\n<\/code><\/pre><\/li>\n<li><p>Debug information appears in a neat panel controlled by javascript. The options expand and collapse. The debug panel also has\na close button to completely remove the debug panel.<\/p><\/li>\n<li><p>Note that the debug bar floats at the top right and will not disrupt your layout.<\/p><\/li>\n<li><p>To ensure layout stability the plugin is hard coded to use only the HTML Div Renderer<\/p><\/li>\n<li><p>displaying server and response varables.<\/p>\n\n<ul>\n<li>Request<\/li>\n<li>Response<\/li>\n<li>Setings<\/li>\n<li>Globals<\/li>\n<li>Php<\/li>\n<li>Files<\/li>\n<li>Database queries<\/li>\n<li>Execution time<\/li>\n<li>Errors and messages<\/li>\n<li>Link to w3c validator<\/li>\n<\/ul><\/li>\n<li><p>With v1.2 you can add debug information via shortcode from within your post. <code>[wp_pear_debug]foo bar[\/wp_pear_debug]<\/code> or you may use:\n [wp_pear-debug foo=\"bar\" foo1=\"bar2\"]<\/p><\/li>\n<li><p>Internationalization support has been added with version 1.4.6. A rough spanish translation has been provided in the hope that someone can take it and create a better translation.<\/p><\/li>\n<\/ol>\n\n<h3>Interesting Points<\/h3>\n\n<p>This plugin requires no 3rd party dependencies such as jQuery.<\/p>\n\n<!--section=installation-->\n<p>Automatic Install:<\/p>\n\n<ol>\n<li>Use the wordpress online installer <\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set the appropriate option under settings-&gt;Debugger admin menu<\/li>\n<li>Please note that the above options must be saved at least once before the debugger can appear<\/li>\n<li>The following step is optional but recommended. Add the following code to wp-config.php <code>define('SAVEQUERIES',true);<\/code><\/li>\n<\/ol>\n\n<p>Manual Upload:<\/p>\n\n<p>File list<\/p>\n\n<ul>\n<li>lang (language files)<\/li>\n<li>lib (containing debugger and helper libraries)<\/li>\n<li>wp-pear-debug.php (Main plugin file)<\/li>\n<\/ul>\n\n<ol>\n<li>UPload folder <code>wp-pear-debug<\/code>  to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set the appropriate option under settings-&gt;Debugger admin menu<\/li>\n<li>Please note that the above options must be saved at least once before the debugger can appear<\/li>\n<li>The following step is optional but recommended. Add the following code to wp-config.php <code>define('SAVEQUERIES',true);<\/code><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Who is this for<\/dt>\n<dd><p>I imagine this plugin will be most valuable to wordpress developers \nIt will also be good for people who are seeing errors on their site.\nThis plugin also measures script execution time so It is also good for people who want to measure the performance of\ntheir entire site or a specific part of their script.<\/p><\/dd>\n<dt>Can I see the library in action?<\/dt>\n<dd><p>You can see the pear demo <a href=\"http:\/\/www.php-debug.com\/www\/PHP_Debug_HTML_Div_test.php\">here:<\/a> Pear Demo.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"This plugin incorporates the pear php_debug library into wordpress.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/3441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=3441"}],"author":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/silasco"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=3441"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=3441"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=3441"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=3441"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=3441"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=3441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}