Enable debug mode with env variable