$CFG->tool_generator_users_password = ‘moodle’;
@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!
$CFG->debugusers = ‘2’;
https://docs.moodle.org/39/en/Debugging#In_config.php