Load Debug Mode only if local environment is detected.