control debug flags using macro