Information Technology Reference
In-Depth Information
production code. When an OS object crashes, it's likely you initialized it incorrectly. But sometimes the OS itself
is buggy, and you have to work around the problem in some other way.
Viewing multiple logs
You can use the Log Navigator shown in Figure 15.8 to compare the console output from different runs. Each
build and debug run adds a new entry to the list at the left. Clicking a Build entry displays build information,
including errors and warnings. Clicking a Debug entry displays the console output from that run.
FIGURE 15.8
Viewing a list of logs in the Log Navigator: Debug logs display console output. Build logs display build results.
For example, the log message added earlier has been modified, and the most recent Debug entry shows the
modified text. Although it's not illustrated in the figure, clicking the earlier Debug entry shows the original con-
sole output from the example earlier in this chapter.
Sessions aren't saved with the project, and the list of entries and their contents is cleared when you close a pro-
ject.
TIP
You can drag-select the contents of the Console and use the right-click context menu to copy them. You also can
use the main Xcode File Save As… menu option to write the entire log to a text file.
Search WWH ::




Custom Search