如何在XCode4中设置NSZombieEnabled & MallocStackLogging

来源:互联网 发布:论网络言论自由权 编辑:程序博客网 时间:2024/06/10 03:10

In order to fix the issue about "EXC_BAD_ACCESS", we can set NSZombieEnabled & MallocStackLogging


How to set them in Xcode 4?

1)Product->Edit Scheme...->Run...->EnvironmentVariables.

Of course , the other way is :click Product->Run...  when holding on alt and option keys.

2)add NSZombieEnabled,set the value with YES

3)add MallocStackLogging, set the value with YES.


for MallocStackLogging:

shell malloc_history 53395 0x79ceda0

53395 ProcessID

OBJECT ADDRESS 0x79ceda0

原创粉丝点击