The Xcode debugger helps you fix bugs and resolve other issues in your code. This video shows how the debugger works, and how to set up breakpoints in your code.
- The debugger and Xcode, much like many other IDEs,…is there for you to solve problems with your code.…For example, I'm going to run this application,…and let's see what happens.…The application stops due to some bug.…It says right here in the editor…that Thread 1 is saying EXC_BAD_INSTRUCTION.…This is not very human-readable.…We don't know what actually went wrong just based on this,…but we do have some helpful areas…that we can use to help us out.…
On the left side of the screen,…if you are debugging a project,…it automatically opens up the Debug Navigator.…So, whenever there's an issue in your code,…it goes to the Debug Navigator so you can…divide your project up by threads,…and in there you can see which thread is noticing a problem…and you can click through the different processes…in that thread so you can locate the problem.…Sometimes this is helpful, sometimes it isn't.…In this case, if we look at number zero…right here in Thread 1, it's saying that the problem…is in AppDelegate.doStuff, so that gives us…
- Installing your development tools
- Working with Xcode and the MVC pattern
- Creating basic interactions
- Creating delegate classes
- Building a user interface
- Laying out the UI
- Working with data and table views
- Binding data objects to the UI
- Debugging your app
- Distributing the app
Skill Level Beginner
1. Get Started
2. Core Cocoa Skills
4. Create User Interfaces
5. Arrange User Interfaces
6. Use Data Controls
7. Debug and Troubleshoot
8. Distribute an Application
9. Finishing Touches
Create full screen apps1m 51s
Next steps1m 21s
- 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.