Possible Duplicate:
Detecting if iOS app is run in debugger
I want to add some special handling code when my program is launched from Xcode Debugger (vs. directly launched from simulator or from device). When Xcode launches a program to debug, will it set an enviroment variable?