The constant DEBUG  is actually DEBUG_MODE as defined in config-base.php