{"id":29248,"date":"2014-05-02T19:20:39","date_gmt":"2014-05-02T19:20:39","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/debug-bar-tracer\/"},"modified":"2014-05-02T19:28:50","modified_gmt":"2014-05-02T19:28:50","slug":"debug-bar-tracer","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/debug-bar-tracer\/","author":7543064,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"3.9.40","requires":"3.1","requires_php":"","requires_plugins":"","header_name":"Debug Bar Tracer","header_author":"Ryan Welcher","header_description":"","assets_banners_color":"","last_updated":"2014-05-02 19:28:50","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.ryanwelcher.com\/donate\/","header_plugin_uri":"http:\/\/www.ryanwelcher.com","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1440,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"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.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[23046,12065,5889],"plugin_category":[],"plugin_contributors":[86503],"plugin_business_model":[],"class_list":["post-29248","plugin","type-plugin","status-closed","hentry","plugin_tags-debug-bar-addon","plugin_tags-plugin-development","plugin_tags-theme-development","plugin_contributors-welcher","plugin_committers-welcher"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/debug-bar-tracer.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Many times when creating a custom theme or plugin there is need to view a piece of data you are working with which can be unweidly and not to mention ugly.\nThis plugin adds a new tab to the Debug Bar plugin that allows you to \"trace\" the data to a window and displays not only the data, but where the call came from and optionally a description.<\/p>\n\n<p>Plus, it's green like the Matrix.<\/p>\n\n<h3>About debug_trace<\/h3>\n\n<p>The method debug_trace() takes one parameter that can be of any data type. \nIf you want to pass a descriptor for the debug_trace(), pass an array with the following indices:<\/p>\n\n<ul>\n<li>'key' =&gt; The descriptor<\/li>\n<li>'data' =&gt; What you want to trace - can be any data type.<\/li>\n<\/ul>\n\n<p>Behind the scenes, each trace is actually an array containing the location of the call, the data and optionally a custom key.\nIf the parameter passed to debug_trace() is an array that has a key of 'key' or 'data', then the method overrides the defaults with it.\nOtherwise, the method assumes you want to trace the passed parameter as the 'data'.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>plugin-name.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Be sure you have Debug Bar installed and active<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>I don't see anything in the Debug Bar window<\/dt>\n<dd><p>The Tracer tab only appears where there are items to trace.<\/p><\/dd>\n<dt>How do I trace an item?<\/dt>\n<dd><p>Place a call to debug_trace( $param ) into your theme or plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First Release<\/li>\n<\/ul>","raw_excerpt":"Trace messages\/data to a Debug Bar window from your theme or plugin. Requires the Debug Bar plugin","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29248"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/welcher"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29248"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29248"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29248"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29248"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29248"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}