Sometimes when building an app, the compiler won't find all the bugs in your code and everything will seem to be working when there's actually a hidden bug. This video shows how to find and squash those hidden bugs using the Xcode debugger.
- [Instructor] One of the most important…skills you can have as a developer…is to be able to debug your code.…Xcode comes with tools for debugging…that allow you to see the values…of variables while the app is running.…Consider this application.…Do you see any bugs in it?…Let's run it and see what happens.…I'm actually going to run it out of full screen mode…so that we can see the output as the app is running.…There we go.…The app runs and after awhile it pauses.…
And I'm saying pauses instead of stops on purpose.…You'll see that it's still running…because we can hit the stop button right here.…What happens is when there is some kind of an error…like this, like where it says here,…Thread 1: Fatal error, Xcode automatically…places what's known as a break point in the application.…A break point stops the application at a certain point…or rather pauses it at a certain point…to allow you to check values of variables…so that you can debug your code.…
When there's something like this, that's a bug,…Xcode automatically puts a break point in…
- Installing and using Xcode
- Working with storyboards
- Working with UI objects and events
- Resizing objects and layouts dynamically
- Coding UI objects such as buttons
- Loading and displaying data in table views
- Testing your iOS app
Skill Level Beginner
1. Xcode Fundamentals
2. Core Skills
3. Responsive UI Design
4. Coding UI Objects
5. Table Views
6. App Flow and Testing
Next steps1m 8s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.