How to set NSZombieEnabled for debugging EXC_BAD_ACCESS on release target for an iPhone app?

Posted by Bobby Moretti on Stack Overflow See other posts from Stack Overflow or by Bobby Moretti
Published on 2010-03-25T21:19:16Z Indexed on 2010/03/26 2:33 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

I'm developing an iPhone application. I have an EXC_BAD_ACCESS that occurs only in the release target; when I build the debug target the exception does not occur. However, when I set the NSZombieEnabled environment variable to YES, I still get the EXC_BAD_ACCESS with no further information. Is it even possible for NSZombieEnabled to work when executing the release target? I don't see why not, since gdb is running in both cases...

© Stack Overflow or respective owner

Related posts about nszombie

Related posts about iphone-sdk