Diagnostics
The Diagnostics tab controls a number of diagnostic and logging options for both OS X and iOS that historically were controlled by environment variables. The most famous is detecting overreleased objects by setting NSZombieEnabled to YES. Diagnostics presents the most frequently used options as checkboxes. Search the Documentation browser for Technical Note TN2124, “Mac OS X Debugging Magic,” for a description of them and their use. The “Debugging Magic” notes (the iOS version is TN2239) are worth reading all the way through.
Note
The “zombie” technique is a useful way to track down attempts to use an object that had been deallocated by Cocoa’s memory-management system. Ordinarily, accessing a disposed-of object would crash, usually ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access