2 回答

TA貢獻1828條經驗 獲得超3個贊
在谷歌上搜索后,我終于找到了關于這個的文檔。你可以在你的 config.php 中添加這個
// Force a debugging mode regardless the settings in the site administration
// @error_reporting(1023); // NOT FOR PRODUCTION SERVERS!
@ini_set('display_errors', '1'); // NOT FOR PRODUCTION SERVERS!
$CFG->debug = 32767; // DEBUG_DEVELOPER // NOT FOR PRODUCTION SERVERS!
// for Moodle 2.0 - 2.2, use: $CFG->debug = 38911;
$CFG->debugdisplay = true; // NOT FOR PRODUCTION SERVERS!
// You can specify a comma separated list of user ids that that always see
// debug messages, this overrides the debug flag in $CFG->debug and $CFG->debugdisplay
// for these users only.
$CFG->debugusers = '2';
https://docs.moodle.org/23/en/Debugging#In_config.php

TA貢獻1824條經驗 獲得超6個贊
你的根文件夾/config.php
取消注釋最后幾行 @error_reporting(E_ALL | E_STRICT); // 不適用于生產服務器!@ini_set('display_errors', '1'); // 不適用于生產服務器!$CFG->調試=(E_ALL | E_STRICT);// === DEBUG_DEVELOPER - 不適用于生產服務器!$CFG->調試顯示=1;// 不適用于生產服務器!
- 2 回答
- 0 關注
- 193 瀏覽
添加回答
舉報