外掛說明
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 );.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.1
- More accurate to detect IP.
1.0 – Jan 22 2020
- Initial Release.