Moodle Debug Numeric Values

The following is a list of the numeric values to set the value of the debug field (either through $CFG->debug in config.php or the debug value in the in the mdl_config table). Note this is for Moodle 2.x.

  • 0 = NONE: Do not show any errors or warnings
  • 5 = MINIMAL: Show only fatal errors
  • 15 = NORMAL: Show errors, warnings and notices
  • 6143 = ALL: Show all reasonable PHP debug messages
  • 38911 = DEVELOPER: extra debug messages for developers

To change in the database, run the following SQL statement:

update mdl_config set value = {appropriate value} where name = 'debug';