plugin-icon

DoDebug

作者:WPDO·
debug tool
Just one debug tool for developers.
评级
最后更新
September 21, 2020
版本
1.1

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.log to 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 );.

免费使用Creator套餐
目前已测试版本
5.3.18
此插件可供下载,可用于您的 WordPress 自托管安装。