Join Simon Allardice for an in-depth discussion in this video Creating an exception breakpoint, part of Cocoa Essential Training.
So you just saw how to use the debugger to analyze something like a divide by zero situation.…There is actually a problem with using divide by zero, it's a little too…obvious, not just to us but to the computer itself, because if you have a…divide by zero issue, you will actually immediately break into this situation…with the EXC_ARITHMETIC, because it's a very low level, what's called a signal…that it is sending to the computer itself, we can't go any further than this.…But some other cases, the program will actually try and continue on, and you…won't immediately stop on the line that caused the problem, you actually break…when Xcode figures out you can't go any further.…
Now there is a couple of different ways that might manifest itself, but let me…show you one of them.…I'm just going to stop this running application and go and fix that divide by…zero exception, which was just returning the variable called b instead of the…variable called a, and then I'm going to go ahead and run this.…I have created the project that has another error in it that's not necessarily…
- Installing the tools
- Creating your first app
- Adding basic interactions
- Understanding the Cocoa application life cycle
- Creating custom controller classes
- Creating alerts
- Understanding delegation
- Working with buttons, text fields, sliders, and more
- Using layout and data views
- Adding and editing toolbars
- Using key-value coding
- Binding objects
- Debugging code
- Distributing an application
- Creating icons and full-screen apps
Skill Level Beginner
1. Getting Started
2. Core Cocoa Skills
4. Creating User Interfaces
5. Arranging User Interfaces
6. Using Data Controls
7. Debugging and Troubleshooting
8. Distributing an Application
9. Finishing Touches
Creating full-screen apps6m 43s
Final thoughts4m 10s
- 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.