Bad memory and zombies

I have a bad memory exception.  In XCode I would have enabled some sort of zombies option... how do I do it in XCode?  I think I am accessing something that was released.

0
3 comments
Avatar
Permanently deleted user

NSZombieEnabled is what I had to do in xCode

0
Avatar
Permanently deleted user

Is this supported in Appcode?

0
Avatar
Permanently deleted user

I am looking for the same thing.
You would set these Environment variables in Run/Debug Configuration.

It doesn;t seem to work though, as if the environment variables are not being set.

I have set
NSDebugEnabled = YES
NSZombieEnabled = YES

and I am expecting the Console to output:
*** -[MyClass someMethod]: message sent to deallocated instance 0x10a21b00

But I only get:
Signal received: EXC_BAD_ACCESS (Could not access memory)

It appears to be supported but doesn't seem to work.


Looks like there is an open ticket about that at:
http://youtrack.jetbrains.net/issue/OC-1179?projectKey=OC&query=NSZombieEnabled

0

Please sign in to leave a comment.