How to set the exception breakpoint in xcode 6

2019-02-21 06:20发布

问题:

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.

回答1:

Ok than try using enabling zombie environment.

Follow these steps:

  1. Click on project name and edit scheme.

  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.

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

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



回答2:

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.



标签: ios xcode6