This should be based on the debug setting, not the environment