Changeset 932629
- Timestamp:
- 06/15/2014 02:15:34 PM (12 years ago)
- Location:
- debug-bar-custom-info
- Files:
-
- 2 edited
-
tags/1.0.1/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
debug-bar-custom-info/tags/1.0.1/readme.txt
r931851 r932629 6 6 Tested up to: 3.9.1 7 7 Stable tag: 1.0.1 8 License: GPLv2 or later 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 10 9 11 This plugin adds an extra panel to Debug Bar plugin that allows developers to output custom debug info. … … 13 15 This plugin adds an extra panel to [Debug Bar](https://wordpress.org/plugins/debug-bar/) plugin that allows developers to output custom debug info. 14 16 15 Think about it like Console in browsers! 17 Developers can log any variable to see its value when running PHP in WordPress. This helps developers see the real-time values of variables. It works exactly like `console.log()` in browsers. 16 18 17 **How to view debug info** 19 = How to add custom debug info = 18 20 19 - You first need to install the [Debug Bar](https://wordpress.org/plugins/debug-bar/) plugin 20 - Install this plugin 21 - When viewing a page, click on **Debug Bar** in the top right of the admin bar 22 - Select **Custom Info** panel (see screenshots) 23 24 That's the place where you see all custom debug info. 25 26 Note: You have to added the *custom* debug info yourself. The plugin only register a place for you to output the debug info. 27 28 **How to add debug info to Custom Info panel** 29 30 Add the following code whenever you want to debug a variable: 21 Add the following code wherever you want to debug a variable: 31 22 32 23 `do_action( 'add_debug_info', $var );` 33 24 34 where `$var` can has any data type. If it is a string or any simple value, the value is outputted directly. If it is an array or object, the output is the same as `print_r( $var )`. 25 where `$var` can has any data type. 26 27 - If `$var` is a string or any simple value, the value is outputted directly. 28 - If `$var` is an array or object, the output is the same as `print_r( $var )`. 29 30 = How to view debug info = 31 32 - Click on **Debug Bar** in the top right of the admin bar 33 - Select **Custom Info** panel (see [screenshots](https://wordpress.org/plugins/debug-bar-custom-info/screenshots/)) 35 34 36 35 [Visit Project Homepage](http://fitwp.com/debug-bar-custom-info/) … … 46 45 == Screenshots == 47 46 47 1. Custom Info Panel 48 48 49 == Changelog == 49 50 -
debug-bar-custom-info/trunk/readme.txt
r931851 r932629 6 6 Tested up to: 3.9.1 7 7 Stable tag: 1.0.1 8 License: GPLv2 or later 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 8 10 9 11 This plugin adds an extra panel to Debug Bar plugin that allows developers to output custom debug info. … … 13 15 This plugin adds an extra panel to [Debug Bar](https://wordpress.org/plugins/debug-bar/) plugin that allows developers to output custom debug info. 14 16 15 Think about it like Console in browsers! 17 Developers can log any variable to see its value when running PHP in WordPress. This helps developers see the real-time values of variables. It works exactly like `console.log()` in browsers. 16 18 17 **How to view debug info** 19 = How to add custom debug info = 18 20 19 - You first need to install the [Debug Bar](https://wordpress.org/plugins/debug-bar/) plugin 20 - Install this plugin 21 - When viewing a page, click on **Debug Bar** in the top right of the admin bar 22 - Select **Custom Info** panel (see screenshots) 23 24 That's the place where you see all custom debug info. 25 26 Note: You have to added the *custom* debug info yourself. The plugin only register a place for you to output the debug info. 27 28 **How to add debug info to Custom Info panel** 29 30 Add the following code whenever you want to debug a variable: 21 Add the following code wherever you want to debug a variable: 31 22 32 23 `do_action( 'add_debug_info', $var );` 33 24 34 where `$var` can has any data type. If it is a string or any simple value, the value is outputted directly. If it is an array or object, the output is the same as `print_r( $var )`. 25 where `$var` can has any data type. 26 27 - If `$var` is a string or any simple value, the value is outputted directly. 28 - If `$var` is an array or object, the output is the same as `print_r( $var )`. 29 30 = How to view debug info = 31 32 - Click on **Debug Bar** in the top right of the admin bar 33 - Select **Custom Info** panel (see [screenshots](https://wordpress.org/plugins/debug-bar-custom-info/screenshots/)) 35 34 36 35 [Visit Project Homepage](http://fitwp.com/debug-bar-custom-info/) … … 46 45 == Screenshots == 47 46 47 1. Custom Info Panel 48 48 49 == Changelog == 49 50
Note: See TracChangeset
for help on using the changeset viewer.