Book Image

Xcode 6 Essentials

By : Jayant Varma
Book Image

Xcode 6 Essentials

By: Jayant Varma

Overview of this book

<p>Apple made their iOS devices easy to use and now they have extended that to their development tools such as Xcode. In Xcode, you can create native applications in the easiest way. Apple's new Xcode technology is making the development curve smoother with its easy-to-develop features and enhancements.</p> <p>Xcode can now write code with the performance-upgraded, brand new, innovative language called Swift, so you no longer need to rely on third-party frameworks to create applications.</p> <p>The book gives you a tour of the new features of Xcode 6. It introduces some important aspects such as the Swift language and its Playgrounds with visual live coding, creating interfaces, storyboards, controllers, frameworks, and live previews. Diving more into the subject, this books shows you how to debug your code, and how to build and test the application on a device or the simulator.</p>
Table of Contents (15 chapters)

Chapter 6. Debugging

In this chapter, we will cover the following topics:

  • Breakpoints

  • Console

  • Debug view hierarchy

  • Data tips and quick look

  • Debug gauges

 

Everyone knows that debugging is twice as hard as writing a program in the first place. So if you are as clever as you can be when you write it, how will you ever debug it?

 
 --Brian Kerninghan

No one writes code with the intention of introducing bugs. However, there are situations where despite the best intentions our worst nightmare comes true—the code crashes. Even with the new advancements that check for code issues and type-safe code, to make a long story short, even then bugs can creep in and cause crashes. Crashes and bugs are not just code errors; they could be missing or unreferenced libraries. There could also be a case where you might be attempting to optimize your code. Debugging provides you with a way to go through your code, and Apple has a whole heap of tools and utilities to help you achieve this task.