Skip to content

Instantly share code, notes, and snippets.

@probablycorey
Created August 26, 2010 22:48
Show Gist options
  • Select an option

  • Save probablycorey/552409 to your computer and use it in GitHub Desktop.

Select an option

Save probablycorey/552409 to your computer and use it in GitHub Desktop.
#define NSZombies
set env NSZombieEnabled=YES
set env NSDeallocateZombies=NO
set env MallocCheckHeapEach=100000
set env MallocCheckHeapStart=100000
set env MallocScribble=YES
set env MallocGuardEdges=YES
set env MallocCheckHeapAbort=1
set env MallocHelp=YES
set env CFZombie 5
# set breakpoints on things that will explode.
fb -[_NSZombie init]
fb -[_NSZombie retainCount]
fb -[_NSZombie retain]
fb -[_NSZombie release]
fb -[_NSZombie autorelease]
fb -[_NSZombie methodSignatureForSelector:]
fb -[_NSZombie respondsToSelector:]
fb -[_NSZombie forwardInvocation:]
fb -[_NSZombie class]
fb -[_NSZombie dealloc]
fb -[NSException raise]
fb szone_error()
fb objc_exception_throw()
fb malloc_error_break()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment