How to set the exception breakpoint in xcode 6

2019-02-21 05:57发布

hi after crashing i set the exception break point by pressing break point symbol and i choose objective c language while editing the break point. I run it again ,app is crashed ,but it is not stopped where the exception is occurred in xcode6

Thanks in advance.

标签: ios xcode6
2条回答
时光不老,我们不散
2楼-- · 2019-02-21 06:36

Ok than try using enabling zombie environment.

Follow these steps:

  1. Click on project name and edit scheme.

enter image description here

  1. A pop over will appear, In that select Arguments tab. See bottom section Environment Variables. You can see + button at bottom part. Click on that button and add varialbe NSZombieEnabled with value YES.

enter image description here

  1. Now from same popover select Diagnostics tab. And mark Enable Zombie Objects.

enter image description here

Click close and again run your project, hope this will track down zombie objects at runtime which cause runtime crash.

查看更多
Fickle 薄情
3楼-- · 2019-02-21 06:37

See the following steps.

  1. Look into [Navigator] and Click on [Show the Breakpoint Navigator].

  2. See the bottom of Navigator [ + ] Sign. Click on it

  3. Select [Add Exception Breakpoint].

Your Exception Breakpoint are activated from this things.

查看更多
登录 后发表回答