xcode 多打印 error log

如何在XCode4中设置NSZombieEnabled

点击scheme下拉菜单 -> 编辑scheme -> arguments, 然后将点击”加号”, 将NSZombieEnabled参数加到Environment Variables窗口中, 后面的数值写上”YES”.

xCode3:

target下有个executables

打开它的info  在arguments栏

下半边 加上个参数

name:NSZombieEnabled  value:yes 然后购上

在debug模式下 以前的bad_access会多点log 帮你定位

你可能感兴趣的:(xcode)