Directly from GHUnit, a small note about which environment variables to set while developing for the iPhone.
Environment Variable: Default: Set to:
NSDebugEnabled NO YES
NSZombieEnabled NO YES
NSDeallocateZombies NO NO (or YES)
NSHangOnUncaughtException NO YES
NSAutoreleaseFreedObjectCheckEnabled NO YES
Actually, I keep forgetting them, so I hope this will be useful to me.
Here an example that shows how to set those environment variables.

