Debugging (auto)release errors
It’s quite easy to release an object twice, causing Objective-C programs to crash somewhere else. Quite difficult to detect, therefore create the following .gdbinit file in your home folder:
fb -[NSException raise] fb objc_exception_throw() fb -[_NSZombie release] fb szone_error
It will trigger the debugger with some very handy breakpoints. Now add a variable to the startup enviroment in Xcode. Double click on MacTrek under executables. Set the following var:
Don’t forget to remove when ready, it’s quite a memory/performance hog.