In C# I can use the following code to have code which only executes during debug build, how can I do the same in Xcode?
#if DEBUG { // etc etc } #endif
There is a very useful debugging technote: Technical Note TN2124 Mac OS X Debugging Magic http://developer.apple.com/technotes/tn2004/tn2124.html#SECENV which contains lots of useful stuff for debugging your apps.
Tony