【发布时间】:2016-05-19 14:05:59
【问题描述】:
我想启用 wordpress 站点的调试日志,在 wp-config.php 中添加了以下设置
/* WordPress debug mode for developers. */
define('WP_DEBUG', true);
if (WP_DEBUG) {
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);
}
在 wp-content 文件夹下创建 debug.log 文件。
更新了 wp-content 和 debug.log 的 777..
但文件仍然是空白的..
请告诉我如何解决它...
只是我想调试网站,有时主页会陷入无限循环......即浏览器未加载页面.. CPU 达到 100%...
谢谢
【问题讨论】:
-
你试过
define( 'SAVEQUERIES', true );吗?
标签: wordpress debugging logging