বৰ্ণনা
This plugin adds an extra panel to Debug Bar plugin that allows developers to output custom debug info.
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.
How to add custom debug info
Add the following code wherever you want to debug a variable:
do_action( 'add_debug_info', $var, $label );
where $var
can has any data type.
- If
$var
is a string or any simple value, the value is outputted directly. - If
$var
is an array or object, the output is the same asprint_r( $var )
.
And $label
is the description label (optional).
How to view debug info
- Click on Debug Bar in the top right of the admin bar
- Select Custom Info panel (see screenshots)
ইনষ্টলেশ্যন
- Unzip the download package
- Upload
debug-bar-custom-info
to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
পৰ্য্যালোচনা
এই প্লাগিনৰ বাবে কোনো পৰ্য্যালোচনা নাই।
অৱদানকাৰী আৰু বিকাশকাৰীসকল
“Debug Bar Custom Info” হৈছে মুক্ত উৎসৰ ছফ্টৱেৰ। এইসকল লোকে এই প্লাগিনত অৱদান আগবঢ়াইছে।
অৱদানকাৰীসকলআপোনাৰ ভাষাত “Debug Bar Custom Info” অনুবাদ কৰক।
বিকাশৰ প্ৰতি আগ্ৰহী?
ক’ড ব্ৰাউজ কৰক, SVN ৰিপজিটৰী চাওক নাইবা RSS-দ্বাৰা বিকাশৰ পঞ্জী ছাবস্ক্ৰাইব কৰক।
সলনি-পঞ্জী
1.0.2
- Add 2nd param “label” to
do_action
1.0.1
- Use
do_action
to prevent fatal error when plugin files is not loaded
1.0
- First release