AI助手支持GPT4.0
This plugin adds an extra panel to Debug Bar plugin that allows developers to output custom debug info.
此插件为调试栏插件添加了一个额外的面板,该插件允许开发人员输出自定义调试信息。 p
>
Developers can log any variable to see its value when running PHP in WordPress.
在WordPress中运行PHP时,开发人员可以记录任何变量以查看其值。
This helps developers see the real-time values of variables.
这有助于开发人员查看变量的实时值。
It works exactly like console.log() in browsers.
console.log()
它与浏览器中的 console.log() code>完全一样。 p>How to add custom debug info如何添加自定义调试信息 h4>Add the following code wherever you want to debug a variable:在要调试变量的任何地方添加以下代码: p>do_action( 'add_debug_info', $var, $label ); do_action('add_debug_info',$ var,$ label); code> pre>where $var can has any data type.其中 $ var code>可以具有任何数据类型。 p>If $var is a string or any simple value, the value is outputted directly.如果 $ var code>是字符串或任何简单值,则该值将直接输出。 li>If $var is an array or object, the output is the same as print_r( $var ).如果 $ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li> ul>And $label is the description label (optional). $ label code>是描述标签(可选)。 p>How to view debug info如何查看调试信息 h4>Click on Debug Bar in the top right of the admin bar点击管理栏右上方的调试栏 strong> li>Select Custom Info panel (see screenshots)<选择自定义信息 strong>面板(请参阅屏幕截图)< /li>/ li> ul>Project Homepage | 项目主页 | Report Bugs |报告错误 | Donate捐赠 p>
console.log() code>完全一样。 p>How to add custom debug info如何添加自定义调试信息 h4>Add the following code wherever you want to debug a variable:在要调试变量的任何地方添加以下代码: p>do_action( 'add_debug_info', $var, $label ); do_action('add_debug_info',$ var,$ label); code> pre>where $var can has any data type.其中 $ var code>可以具有任何数据类型。 p>If $var is a string or any simple value, the value is outputted directly.如果 $ var code>是字符串或任何简单值,则该值将直接输出。 li>If $var is an array or object, the output is the same as print_r( $var ).如果 $ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li> ul>And $label is the description label (optional). $ label code>是描述标签(可选)。 p>How to view debug info如何查看调试信息 h4>Click on Debug Bar in the top right of the admin bar点击管理栏右上方的调试栏 strong> li>Select Custom Info panel (see screenshots)<选择自定义信息 strong>面板(请参阅屏幕截图)< /li>/ li> ul>Project Homepage | 项目主页 | Report Bugs |报告错误 | Donate捐赠 p>
Add the following code wherever you want to debug a variable:
在要调试变量的任何地方添加以下代码: p>
do_action( 'add_debug_info', $var, $label ); do_action('add_debug_info',$ var,$ label); code> pre>where $var can has any data type.其中 $ var code>可以具有任何数据类型。 p>If $var is a string or any simple value, the value is outputted directly.如果 $ var code>是字符串或任何简单值,则该值将直接输出。 li>If $var is an array or object, the output is the same as print_r( $var ).如果 $ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li> ul>And $label is the description label (optional). $ label code>是描述标签(可选)。 p>How to view debug info如何查看调试信息 h4>Click on Debug Bar in the top right of the admin bar点击管理栏右上方的调试栏 strong> li>Select Custom Info panel (see screenshots)<选择自定义信息 strong>面板(请参阅屏幕截图)< /li>/ li> ul>Project Homepage | 项目主页 | Report Bugs |报告错误 | Donate捐赠 p>
do_action('add_debug_info',$ var,$ label);
code> pre>
where $var can has any data type.
$var
其中 $ var code>可以具有任何数据类型。 p>If $var is a string or any simple value, the value is outputted directly.如果 $ var code>是字符串或任何简单值,则该值将直接输出。 li>If $var is an array or object, the output is the same as print_r( $var ).如果 $ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li> ul>And $label is the description label (optional). $ label code>是描述标签(可选)。 p>How to view debug info如何查看调试信息 h4>Click on Debug Bar in the top right of the admin bar点击管理栏右上方的调试栏 strong> li>Select Custom Info panel (see screenshots)<选择自定义信息 strong>面板(请参阅屏幕截图)< /li>/ li> ul>Project Homepage | 项目主页 | Report Bugs |报告错误 | Donate捐赠 p>
$ var code>可以具有任何数据类型。 p>If $var is a string or any simple value, the value is outputted directly.如果 $ var code>是字符串或任何简单值,则该值将直接输出。 li>If $var is an array or object, the output is the same as print_r( $var ).如果 $ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li> ul>And $label is the description label (optional). $ label code>是描述标签(可选)。 p>How to view debug info如何查看调试信息 h4>Click on Debug Bar in the top right of the admin bar点击管理栏右上方的调试栏 strong> li>Select Custom Info panel (see screenshots)<选择自定义信息 strong>面板(请参阅屏幕截图)< /li>/ li> ul>Project Homepage | 项目主页 | Report Bugs |报告错误 | Donate捐赠 p>
$ var code>是字符串或任何简单值,则该值将直接输出。 li>If $var is an array or object, the output is the same as print_r( $var ).如果 $ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li>
print_r( $var )
$ var code>是数组或对象,则输出与 print_r($ var) code>相同。 li>
print_r($ var) code>相同。 li>
ul>
And $label is the description label (optional).
$label
$ label code>是描述标签(可选)。 p>How to view debug info如何查看调试信息 h4>Click on Debug Bar in the top right of the admin bar点击管理栏右上方的调试栏 strong> li>Select Custom Info panel (see screenshots)<选择自定义信息 strong>面板(请参阅屏幕截图)< /li>/ li> ul>Project Homepage | 项目主页 | Report Bugs |报告错误 | Donate捐赠 p>
/li>
/ li>
Project Homepage |
项目主页 |
Report Bugs |
报告错误 |
Donate
捐赠 p>
debug-bar-custom-info
/wp-content/plugins/
debug-bar-custom-info code>上载到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
ol>
原文出处:http://www.sanshu.cn/a/10388.html
群主管理都是支付大佬