How do you add a breakpoint in Xcode?

前端 未结 4 435
时光说笑
时光说笑 2020-12-03 22:37

I have written my first Hello World Objective C program. How do I add a breakpoint and inspect a variable? I can see a Breakpoints button but can\'t insert one.

4条回答
  •  醉酒成梦
    2020-12-03 22:42

    You don't need to right click or any such thing. To enable the breakpoints in your code all you have to do is click on a particular line number. You'll get a breakpoint symbol in your code there.

    You can add multiple breakpoints to your code. The breakpoints button on top is used to put all your breakpoints ON (during debugging) or OFF (when necessary)

    I'll be addressing a section on breakpoints in my blog ( http://techtalktone.wordpress.com ) soon.

    Hope this helps :D

提交回复
热议问题