Debugging

iPhone Developer Tips Visitor Stats:
126,691 Pageviews and 94,296 visitors in the past 30 days.



Tracking Down EXC_BAD_ACCESS Errors with NSZombieEnabled

It’s only a matter of time before you’ll find yourself face to face with the dreaded EXC_BAD_ACCESS error message. This message generally occurs when you attempt to access an object that has previously been released. NSZombieEnabled is an environment variable which can be helpful to track down the elusive object causing the problem. With the [...]

Debugging

Debugging Macros

In a previous post, Yet Another Debug Output Replacement, I wrote a macro that I prefer over NSLog as the output does not prepend the date/time and object information that NSLog does. Since that time I’ve pulled together a few more macros that I use on a regular basis for printing debug information on rectangles, [...]

Debugging

Write Debug Output to a File

NSLog definitely has its place in debugging. In a previous post I shared a version I wrote that skips displaying the date and object information, you can read more about the debug command I use on a regular basis here.

Debugging, General

Yet Another Debug Output (NSLog Replacement)

Although NSlog is convenient for outputting messages to the console, I tire of the date/time and object information that it prints. As an alternative, one can craft a macro that uses CFShow, which outputs Core Foundation objects to stderr. CFShow uses callbacks to objects to display their descriptions, which allows one to use “%@” like [...]

Debugging