Popular Tags

Who's online

There are currently 0 users and 95 guests online.

User login

Everyone has evil "invisible" bugs in their code from time to time. Use these tips to root out your bugs more easily.

This technote from Apple describes a number of 'secret' debugging facilities in Mac OS X, including environment variables, preferences, routines callable from GDB, special files, and so on. If you're developing for Mac OS X, you should look through this list to see if you're missing out on something that will make your life easier.

Everyone has experienced evil "invisible" bugs, such as over-releasing an object, like so:

NSArray *array = [[NSArray alloc] init];
// some code...
[array release];
// more code...
[array release];  // CRASH!

Foundation has numerous debugging facilities that are enabled by environment variables, described here. If you're getting strange crashing and you suspect memory errors, definitely check out  NSZombieEnabled to help spot over-released objects.

Another really neat feature is debugging raw AppleEvents.

Your rating: None Average: 5 (1 vote)



The site has recently been updated. You may notice some of the following issues:

  • Some URLs no longer work. Please use the search box.
  • File uploads should now be working. If you experience problems, please contact us.