BACK TO DIRECTORY
This plugin can log the breakpoints into the file.
- To check the log, ssh to server, run
tail -f /your_wordpress_path/wp-content/debug.logto watch the output.
API
-
To log, use
defined( 'debug' ) && debug( 'your content to log' );in your plugin/theme code. -
To log only in advanced debug level, use
defined( 'debug' ) && debug2( 'your content to log' );. -
To log with backtrace depth = 4, use
defined( 'debug' ) && debug( 'your content to log', 4 );. -
To append one variable (usually an array), use
defined( 'debug' ) && debug( 'your content to log', $var_to_check );.
Plugin Details
Active Installs
0Total Downloads
1,132Version
1.1Requires WP
4.0Requires PHP
—Tested Up To
5.3.23Added
2020-01-22Last Updated
2020-09-21 5:45pm GMTRatings
5
0
4
0
3
0
2
0
1
0