Linux 软件免费装

WP Simple Debug

开发者 jessepearson
更新时间 2016年1月28日 22:38
PHP版本: 3.7.1 及以上
WordPress版本: 4.4.1

标签

simple debug log

下载

0.0.2 1.0.0 0.0.1

详情介绍:

WP Simple Debug creates a simple function to allow developers to write to the WordPress debug.log. Feature requests or bugs can be added to the GitHub page. 产品特点

安装:

This section describes how to install the plugin and get it working.
  1. Upload the wp-simple-debug directory to your /wp-content/plugins/ directory
  2. 通过WordPress的的“Plugins”菜单激活插件
  3. Note: This will turn on WordPress debugging, which will show any errors in any other plugins or themes.
用法 After installing & activating the plugin...
  1. Use the function where you would like to in your code: wpsd_log( $data, $note, $file, $line, $full_backtrace )
  2. $data - required - mixed - The data you would like to log. This can be a string, array or object.
  3. $note - optional - string - Will log any note you'd like before outputting the data, such as a variable name. Default '';
  4. $file - optional - bool - If true, will output the path to file calling the function. Default true.
  5. $line - optional - bool - If true, will output the line in the file calling the function. Default true.
  6. $full_backtrace - optional - bool - If true, will output the full backtrace to how the function was called, then die to prevent excessive amounts of data being written. Default false.

更新日志:

1.0.0 0.0.2 0.0.1