Debugging
From IPhone Dev FAQ
(Redirected from I have a bug in my program, how do I find it?)
Debugging is one of the most enjoyable parts of programming. Unraveling one's own twisted logic, misunderstanding of the documentation and misuse of the language is challenging, aggravating and oh so satisfying once the bug is defeated.
One great tool to use when you suspect a bug, and especially prior to app release is the Clang Static Analyzer. Use it frequently.
"The LLVM/Clang static analyzer is a standalone tool that find bugs in C and Objective-C programs. Currently the analyzer is invoked as a command-line tool. It is intended to run in tandem with a build of a project or code base."
And here is a brief tutorial on using it : Clang Static Analyzer.
