debug environment flag auto support