我如何以开发人员的身份在Moodle中进行调试?

问题描述 投票:-2回答:1

我正在研究情绪,特别是在操纵数据中。我想分享我作为debugging in moodle的开发人员的经验。可能会帮助您节省Google搜索的时间。

php mysql debugging moodle developer-tools
1个回答
0
投票

在Google上进行搜索后,我终于找到了有关此文档。您可以将其添加到您的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

© www.soinside.com 2019 - 2024. All rights reserved.