AI助手支持GPT4.0
This is tool that help developers and administrators easier getting information.
此工具可帮助开发人员和管理员更轻松地获取信息。 p>
The debug bar is available on front side for everyone if WP_DEBUG is true.
如果WP_DEBUG为true,则调试栏可用于所有人。
If you are admin you can open bar on any page.
如果您是管理员,则可以在任何页面上打开栏。
Hover the mouse cursor to bottom right corner and click on
将鼠标悬停在右下角,然后单击 p>
ul>
Implementation time counter
实施时间计数器 strong> p>It count the time from plugin loaded action to debug bar.它计算从插件加载操作到调试栏的时间。It does not consider processes that implement before and during the plugins are loading.它不考虑插件加载之前和期间实现的过程。 p>Queries counter 查询柜台 strong> p>It count all what is queried via $wpdb object.它计算通过$ wpdb对象查询的所有内容。 p>Queries list 查询列表 strong> p>It show all what is queried via $wpdb object.它显示了通过$ wpdb对象查询的所有内容。 p>The SAVEQUERIES constant must be defined as true. SAVEQUERIES code>常量必须定义为 true code>。 p>Memory counter 内存计数器 strong> p>Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.以字节为单位返回当前分配给您的PHP脚本的内存量。 p>Segment checker 段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
It count the time from plugin loaded action to debug bar.
它计算从插件加载操作到调试栏的时间。
It does not consider processes that implement before and during the plugins are loading.
它不考虑插件加载之前和期间实现的过程。 p>
Queries counter
查询柜台 strong> p>It count all what is queried via $wpdb object.它计算通过$ wpdb对象查询的所有内容。 p>Queries list 查询列表 strong> p>It show all what is queried via $wpdb object.它显示了通过$ wpdb对象查询的所有内容。 p>The SAVEQUERIES constant must be defined as true. SAVEQUERIES code>常量必须定义为 true code>。 p>Memory counter 内存计数器 strong> p>Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.以字节为单位返回当前分配给您的PHP脚本的内存量。 p>Segment checker 段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
It count all what is queried via $wpdb object.
它计算通过$ wpdb对象查询的所有内容。 p>
Queries list
查询列表 strong> p>It show all what is queried via $wpdb object.它显示了通过$ wpdb对象查询的所有内容。 p>The SAVEQUERIES constant must be defined as true. SAVEQUERIES code>常量必须定义为 true code>。 p>Memory counter 内存计数器 strong> p>Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.以字节为单位返回当前分配给您的PHP脚本的内存量。 p>Segment checker 段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
It show all what is queried via $wpdb object.
它显示了通过$ wpdb对象查询的所有内容。 p>
The SAVEQUERIES constant must be defined as true.
SAVEQUERIES
true
SAVEQUERIES code>常量必须定义为 true code>。 p>Memory counter 内存计数器 strong> p>Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.以字节为单位返回当前分配给您的PHP脚本的内存量。 p>Segment checker 段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
true code>。 p>Memory counter 内存计数器 strong> p>Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.以字节为单位返回当前分配给您的PHP脚本的内存量。 p>Segment checker 段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
Memory counter
内存计数器 strong> p>Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.以字节为单位返回当前分配给您的PHP脚本的内存量。 p>Segment checker 段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
Returns the amount of memory, in bytes, that’s currently being allocated to your PHP script.
以字节为单位返回当前分配给您的PHP脚本的内存量。 p>
Segment checker
段检查器 strong> p>Also you can check any segment of your code.您还可以检查代码的任何段。 p>do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
Also you can check any segment of your code.
您还可以检查代码的任何段。 p>
do_action('check_segment', 'segment_1'); do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1'); code> pre>The code below returns in debug bar new item like this:下面的代码在调试栏中返回如下新项: p>segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
do_action('check_segment','segment_1');//do somethisng//做某事do_action('check_segment', 'segment_1');do_action('check_segment','segment_1');
//do somethisng
//做某事
do_action('check_segment', 'segment_1');
do_action('check_segment','segment_1');
code> pre>
The code below returns in debug bar new item like this:
下面的代码在调试栏中返回如下新项: p>
segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p> blockquote>The digits there ara time, queries and how many times this code was implemented.时间,查询次数以及该代码的实施次数。 p>References menu 参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
segment_1: 14.14/3/1 segment_1:14.14 / 3/1 p>
segment_1: 14.14/3/1
segment_1:14.14 / 3/1 p>
blockquote>
The digits there ara time, queries and how many times this code was implemented.
时间,查询次数以及该代码的实施次数。 p>
References menu
参考菜单 strong> p>The default one item of this menu is Errors.此菜单的默认一项是“错误”。It shows notices and warnings including case when WP_DEBUG is false.它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
The default one item of this menu is Errors.
此菜单的默认一项是“错误”。
It shows notices and warnings including case when WP_DEBUG is false.
WP_DEBUG
它显示通知和警告,包括 WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
WP_DEBUG code>为false时的情况。 p>And also you can easy add your item to this menu and print there any var_dump or anything else.您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
And also you can easy add your item to this menu and print there any var_dump or anything else.
您还可以轻松地将项目添加到此菜单,然后在其中打印任何var_dump或其他任何内容。 p>
add_filter('wp_debug_refs', 'my_debug_tool_ref'); add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}} code> pre>
add_filter('wp_debug_refs','my_debug_tool_ref');function my_debug_tool_ref ($refs) { 函数my_debug_tool_ref($ refs){ global $post; 全球$ post; $refs['my_ref_id'] = array( $ refs ['my_ref_id'] = array( 'title' => 'My ref', 'title'=>'我的推荐人', 'content' => 'My ref' .'content'=>'我的推荐人 b>'。 var_export($post, true), var_export($ post,true), ); ); return $refs;返回$ refs;}}
function my_debug_tool_ref ($refs) {
函数my_debug_tool_ref($ refs){
global $post;
全球$ post;
$refs['my_ref_id'] = array(
$ refs ['my_ref_id'] = array(
'title' => 'My ref',
'title'=>'我的推荐人',
'content' => 'My ref' .
'content'=>'我的推荐人 b>'。
var_export($post, true),
var_export($ post,true),
);
);
return $refs;
返回$ refs;
}
Debug Tool is easy to install and configure.
调试工具易于安装和配置。 p>
easyazon
/wp-content/plugins/
easyazon code>目录上传到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Set WP_DEBUG constant if you want to see the bar at front side when you are logged out.如果要在注销时看到正面的栏,请设置WP_DEBUG常量。 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>Set WP_DEBUG constant if you want to see the bar at front side when you are logged out.如果要在注销时看到正面的栏,请设置WP_DEBUG常量。 li>
ol>
原文出处:http://www.sanshu.cn/a/10427.html
群主管理都是支付大佬