Aug 20 2008
Filename and Line Number with NSLog: Part II
In the previous post (on the iPhone Developer Tips blog) I demonstrated a simple debug class that I wrote to wrap some additional code around NSLog. The code allows for displaying additional information beyond the date/time stamp and process ID that NSLog outputs, specifically, the filename which calls the debug routine, and the line number where the call was invoked. I also added a few additional configuration options including an option to disable all debug messages.
You can read the rest of the tip on the iPhone Developer Tips blog.
Comments Off
Tips by RSS
Tips by Email