Linux 软件免费装

Plugin Name

开发者 webheadllc
更新时间 2016年6月24日 02:42
PHP版本: 3.4.1 及以上
WordPress版本: 4.5.3
版权: GPLv2 or later
版权网址: 版权信息

标签

debug development developer tool

下载

1.0 1.1 1.2 1.3 1.4 1.4.1

详情介绍:

This plugin is for developers. Wherever you need to find out what is happening in your code place wh_debug('name', $value) in there. Where 'name' describes what you are trying to debug and $value is the value you want to see. Run your code and see the value(s) in a table on the admin side under Tools->WH Debug. Development for this plugin is based on my needs and free time.

常见问题:

wh_debug($name, $value)

Adds $value to the options table with a 'wh_debug_' prefix. Does not interrupt the normal flow of operations.

wh_debug_hooks($hook_name, $echo=true)

Print out or return all methods that will be called for $hook_name. A hook can be a action or filter (ie 'wh_head').

wh_debug_deactivate_plugin($plugin_path) and wh_debug_activate_plugin($plugin_path)

Programmatically activate/deactivate a plugin.

wh_debug_trace()

Prints out all files leading up to the error. Can ignore troublesome files/plugins.

wh_debug_log_query()

Add this before any WP_Query or get_posts and the SQL query string will be added to the logs.

更新日志:

1.4.1 Fixed all values showing single quotes. 1.4 Updated displaying of arrays in table so that it prints a nice string. Added delete all. 1.3 Added counter to options with the same name.\ bug fixes. 1.2 Added logging of query. 1.1 Added local timestamp to the meta key. 1.0 Initial release.