NSLog()function to do good old fashioned
Sometimes you need to test your code on a real device that's detached from your development system because you're testing out in the field or you're working with the External Accessory Framework and you need use the 30 pin connector to talk to the accessory. Fortunately the Xcode Organizer provides you with some help here.
The Console tab can be just as confusing at first, but shows you not only the
NSLog()output from your app but handy system messages as well.
NSLog(), but it can be incredibly handy in narrowing down or confirming the cause of a crash when your device is not connected to Xcode.