Breakpoints can stop your app while it's running to help you squish bugs and find gaps in logic. This movie shows how to use breakpoints in your development in Xcode.
- [Narrator] With breakpoints you can…run through your code line by line.…To add a breakpoint, simply click…to the left of the line number.…You can see the breakpoints added with the breakpoint icon.…And what that's going to do is stop the app…while it's running at the particular location.…You can add more than one breakpoint as well.…Let's run the app and see how it works.…So the application is running now…and when it's running, it hits a breakpoint.…
When application did finish launching…inside of this method and then it stops…right here where the breakpoint is.…Note that the value of sum is equal to zero.…And if I want to, I can actually go to…the next line by using this button right here.…Step over, that takes me to the next line…and then I'm looking at getSum.…Here I'm still seeing that the value of sum is zero.…The way that breakpoints work is that…you get the values of variables when the breakpoint…is hit, line by line, but it's before…the line is actually completely processed.…
In order to see the value of sum, I…
Author
Released
11/18/2016These Xcode tutorials help new developers install Xcode and start writing and editing code. Instructor Todd Perkins shows how to build a brand-new user interface (UI) with buttons and menus in Interface Builder, Xcode's intuitive UI design tool, as well as advanced designs that adapt to screen size, aspect ratio, and orientation changes. He reviews the version control and storyboard features, as well as the basics of schemes and behaviors. Plus, learn how to compile and debug apps, test apps in the iOS Simulator, and send your app to Apple for distribution in the App Store.
- What is Xcode?
- Installing Xcode 8
- Creating your first Xcode project
- Editing code
- Creating snippets
- Adding Git version control
- Making interface connections to the code
- Using Interface Builder
- Creating storyboards
- Pinning objects
- Compiling code with the LLVM compiler
- Working with schemes and behaviors
- Sharing resources in a workspace
- Catching common errors with Analyze and Fix-It
- Using the iOS Simulator
- Preparing an app to be published
Skill Level Beginner
Duration
Views
-
Introduction
-
Welcome47s
-
-
1. Getting Started
-
What is Xcode?1m 57s
-
Install Xcode 840s
-
Explore the user interface4m 59s
-
Use tabs2m 2s
-
Open files quickly1m 9s
-
View the Xcode documentation2m 14s
-
Use the Quick Help inspector1m 52s
-
Import assets4m 57s
-
-
2. Edit Code
-
Create snippets4m 6s
-
Use the Symbol Navigator2m 48s
-
Prototype in a playground3m 44s
-
3. Version Control
-
Commit changes2m 34s
-
4. Interface Builder Basics
-
Explore Interface Builder5m 58s
-
Use the Identity Inspector5m 33s
-
Use the Attributes Inspector3m 55s
-
Use the Size Inspector2m 45s
-
-
5. Storyboards
-
Understanding pinning7m 16s
-
Modify pins3m 26s
-
6. Compiling
-
Work with schemes3m 1s
-
Use behaviors1m 51s
-
7. Debugging
-
Use the debugger3m 42s
-
Work with breakpoints3m 15s
-
-
8. Workspaces
-
Create a workspace4m 18s
-
-
9. Static Analysis Tools
-
Correct errors with Fix-it1m 54s
-
Use the Analyze tool1m 48s
-
-
10. The iOS Simulator
-
11. Publishing Apps
-
Send an app to Apple2m 40s
-
Conclusion
-
Next steps1m
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Work with breakpoints