Skip to Main Content
Xcode 5 Start to Finish: iOS and OS X Development
book

Xcode 5 Start to Finish: iOS and OS X Development

by Fritz Anderson
May 2014
Intermediate to advanced content levelIntermediate to advanced
624 pages
19h 43m
English
Addison-Wesley Professional
Content preview from Xcode 5 Start to Finish: iOS and OS X Development

Doing More with Breakpoints

Many developers, even if they regularly use breakpoints, believe logging is the only way to pull control flow and state out of their programs when it’s not practical to stop dead at every pass through a segment of code. Not so. If you take nothing else away from this chapter, remember this: Almost never do you have to compile NSLog() or other printing functions into your application for debugging.

Use breakpoint options instead of NSLog()s. The options popover (Figure 28.2) is a little intimidating, but everything in it has a purpose, and once you understand what you can do, it all falls into place.

Image

Figure 28.2 A breakpoint ...

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.
Start your free trial

You might also like

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Fritz Anderson
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9780133751031Purchase book