Linux 软件免费装

WPIT PHP Chrome Console

开发者 SteveAgl
更新时间 2011年12月8日 19:00
PHP版本: 3.0 及以上
WordPress版本: 3.3

标签

plugin WordPress PHP Chrome Console

下载

0.1beta

详情介绍:

A simple plugin to send data to Google Chrome Console. Based on the ChromePhp class ChromePhp class by Craig Campbell. You have to install ChromePHP extension on Chrome to have this plugin to work. The plugin works only using Chrome and for admin only, so no debug sensive data are visible to the world. Through this plugin you can make PHP debug on production live site without breaking pages with echo/print of raw data or use HTML comments to hide them in the code with the risk other people can see them and spiders index them. This first, beta development version have a series of method to: The following function are available: Print simple messages wpit_cons_log('This is a simple message') Echo value of variable, array or object wpit_cons_var ('A message', $var-array-obj_to_echo) Echo info messagge with optional variable, array or object wpit_cons_info ('A message', $var-array-obj_to_echo) Echo warning messagge with optional variable, array or object wpit_cons_warn ('A message', $var-array-obj_to_echo) Echo error messagge with optional variable, array or object wpit_cons_error ('A message', $var-array-obj_to_echo) Start a timer wpit_cons_start_timer('timer_name') Stop a timer wpit_cons_stop_timer('timer_name') Print timer's value wpit_cons_get_timer('timer_name') Open a group of messages wpit_cons_group('group_name') Open a group of messages collapsed wpit_cons_group_collapsed('group_name') Close a group of messages wpit_cons_group end('group_name')

安装:

  1. Upload 'plugin-name.php' to the '/wp-content/plugins/' directory,
  2. Activate the plugin through the 'Plugins' menu in WordPress.

更新日志:

0.1 First test and development release