{"id":23120787,"url":"https://github.com/efc/efc-debug","last_synced_at":"2025-04-04T03:16:22.130Z","repository":{"id":30188203,"uuid":"33738927","full_name":"efc/efc-debug","owner":"efc","description":"Puts a simple debug umbrella in the Admin bar of WordPress admin users.","archived":false,"fork":false,"pushed_at":"2015-04-11T04:10:48.000Z","size":156,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T14:47:53.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/efc.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-10T16:32:25.000Z","updated_at":"2015-04-11T03:47:59.000Z","dependencies_parsed_at":"2022-08-28T13:30:12.986Z","dependency_job_id":null,"html_url":"https://github.com/efc/efc-debug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efc%2Fefc-debug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efc%2Fefc-debug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efc%2Fefc-debug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/efc%2Fefc-debug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/efc","download_url":"https://codeload.github.com/efc/efc-debug/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247112766,"owners_count":20885606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T06:14:03.203Z","updated_at":"2025-04-04T03:16:22.102Z","avatar_url":"https://github.com/efc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EFC Debug Plugin\n\n- Contributors: efc\n- Tags: debugging\n- Requires at least: 3.5\n- Tested up to: 4.1.1\n- Stable tag: master\n- License: The MIT License \n- License URI: http://opensource.org/licenses/MIT\n\nThis is a very simple plugin to facilitate the display of debugging messages. Nothing fancy here.\n\n## Description\n\nThis plugin will place a small menu with an umbrella toward the right side of the admin bar. Clicking on this menu reveals a hidden div where debug messages are available.\n\n### Features\n\n- Recognizes a variable number of arguments.\n\n- This plugin distinguishes between strings and other variables being reported. Any non-string will automatically be dumped with `print_r()` so that all elements can be seen.\n\n- The umbrella in the admin bar will be on a red background if `WP_DEBUG` is true. This is an extra reminder to turn off debugging before putting code into production.\n\n- Always provides a copy of `$wp_query` and `$ENV`.\n\n### Usage\n\nInclude `efc-debug-include.php` somewhere at the top of your functions.php (or other PHP file)...\n\n```\ninclude_once(dirname(__FILE__).'/../../plugins/efc-debug/efc-debug-include.php');\n```\n\n...note that you may well have to edit that line to include the proper reference to the file.\n\nThen anywhere else in your code use this to add items to the debug report...\n\n```\nif (function_exists('dbug_report')) dbug_report('message: ',$variable);\n```\n\nInclude as many arguments as you need. Any non-string variable you include will be expanded to reveal its elements.\n\nDon't forget you can use PHP magic constants too:\n\n```\nif (function_exists('dbug_report')) dbug_report(__CLASS__, __METHOD__);\n```\n\nWhen looking at your page, you can reveal the debug report by clicking on the umbrella in the adming bar.\n\n## Notes\n\nThis is really a plugin for developers. It will be of little use to regular WordPress users.\n\nIn fact, you should probably deactivate this plugin whenever you are not actively working on your site's code.\n\n## Frequently Asked Questions\n\n### Aren't there better debugging plugins around?\n\nSure! Many people swear by [Debug Bar](https://wordpress.org/plugins/debug-bar/). Go check it out. For me, though, it was just too complex. I wanted something simple.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefc%2Fefc-debug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fefc%2Fefc-debug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fefc%2Fefc-debug/lists"}