Information Technology Reference
In-Depth Information
NOTE
The Analyzer displays likely issues. It doesn't suggest fixes for them—but the issue descriptions are often detailed
enough to hint at what needs to be fixed.
Getting Started with Debugging
The Issues navigator and the Static Analyzer are good for finding basic syntactical errors and simple logical er-
rors. But bugs are often more complex, and don't appear until you run the code. The Xcode 4 debugger in-
cludes a selection of tools for checking code as it runs .
The debugger appears in its own area, which is hidden by default. To display it, click the middle icon of the
three near the top left of the Xcode window. You also can select View⇒Show Debug Area in the main Xcode
menu. The debug area appears at the bottom of the screen, under the code editor. There are three active panes:
A mini-toolbar: The buttons are used with breakpoints. You can use them to single-step or restart execu-
tion after a pause.
A hierarchical object viewer called the Variables View, in the pane at the left: The viewer displays an
object as a tree that can be expanded to show its contents. Like the toolbar, this pane is used when working
with breakpoints to examine objects and check their contents.
Search WWH ::




Custom Search