Setting Debug mode by env variable