Linux 软件免费装
Banner图

Black Bar

开发者 pryley
geminilabs
更新时间 2024年5月9日 05:27
捐献地址: 去捐款
WordPress版本: 6.5
版权: GPLv3
版权网址: 版权信息

标签

development debugging blackbar black bar debug bar debugbar blackbox

下载

1.1.0 1.2.0 2.1.1 2.1.2 2.1.3 2.1.4 2.2.0 1.0.0 3.0.0 3.1.0 4.0.1 4.0.2 4.1.0 2.2.1 4.0.0 4.0.3 4.1.1 4.1.2 2.0.0 2.1.0 4.1.3 4.1.4

详情介绍:

Black Bar is an unobtrusive Debug Bar for WordPress developers. It collects and displays errors, executed SQL queries, slow actions and hooks, theme templates, global variables, and provides a profiler. How it helps you with development:

安装:

If you have never installed a WordPress plugin before, you can read instructions on how to do this here.

常见问题:

How do I add entries to the Console?

To add entries to the console, insert the following line of PHP anywhere in your code: apply_filters('console', 'Enter something to debug here'); You can also add an optional log level like this: apply_filters('console', 'Enter something to debug here', 'error'); The available log levels are: debug, info, notice, warning, error, critical, alert, and emergency.

How do I use the Profiler?

To use the profiler, insert the following lines of PHP before and after the code you are profiling: Before: apply_filters('trace:start', 'Enter a description of what you are profiling here'); After: apply_filters('trace:stop');

How do I enable the plugin for non-administrators?

By default, Black Bar is only visible to administrator users. To enable it for all logged-in users, use this code snippet: add_filter('blackbar/enabled', 'is_user_logged_in');

How do I change the number of slowest hooks displayed?

By default, Black Bar displays the 50 slowest action/filter hooks. To display all hooks, use this code snippet: add_filter('blackbar/hooks/all', '__return_true');

更新日志:

4.1.4 (2024-05-08) 4.0.3 (2023-10-11) 4.0.2 (2023-09-18) 4.0.1 (2023-03-04) 4.0.0 (2023-02-13) See changelog for all versions.