How to set the exception breakpoint in xcode 6

后端 未结 2 512
忘掉有多难
忘掉有多难 2021-01-17 06:28

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 cras

2条回答
  •  礼貌的吻别
    2021-01-17 06:44

    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.

提交回复
热议问题