如何在xcode 6中设置异常断点 [英] How to set the exception breakpoint in xcode 6

查看:114
本文介绍了如何在xcode 6中设置异常断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在崩溃之后我通过按断点符号设置异常断点,并在编辑断点时选择目标c语言。我再次运行它,应用程序崩溃,但它没有停止在xcode6中发生异常的地方

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

提前致谢。

推荐答案

比尝试使用启用僵尸环境还好。

Ok than try using enabling zombie environment.

请按照以下步骤操作:


  1. 点击项目名称和编辑方案。


  1. 将出现弹出窗口,在该选择参数选项卡中。请参阅底部环境变量。您可以在底部看到 + 按钮。单击该按钮并添加varialbe NSZombieEnabled ,其值为 YES

  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. 现在从同一个弹出框中选择诊断标签。并标记启用僵尸对象

  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.

这篇关于如何在xcode 6中设置异常断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆