How to add a breakpoint in Xcode?

I wrote my first program, Hello World Objective C. How do I add a breakpoint and test a variable? I see the Breakpoint button, but cannot insert it.

+8
xcode
source share
4 answers

Maybe this is useful for you: Xcode Debugging Guide enter image description here

+4
source share

You do not need to right-click or something like that. To enable breakpoints in your code, all you have to do is click on a specific line number. You will get a breakpoint symbol in your code there.

You can add multiple breakpoints to your code. The breakpoints button on top is used to turn on all breakpoints (during debugging) or off (if necessary).

I will talk about the breakpoints section of my blog soon ( http://techtalktone.wordpress.com ).

Hope this helps: D

+5
source share

Command + \ add breakpoint in current line

+3
source share

use the menu item Product β†’ Debugging β†’ Add breakpoint in the current line

this menu also displays shortcuts for similar actions

+2
source share

All Articles