Re:A simple tip to make your debugging sessions go easier
by Zev on Thursday November 17, 2011 @02:41PM
(#3248929)
You can do something similar with iOS development as well, by implementing a -debugDescription method to return a NSString * object that is then printed out when you use print-object (or po) from GDB/LLDB.
If -debugDescription is not implemented, than the debugger will print out whatever -description returns, instead. -description is the same method that is called when an object is printed out with NSLog().
If -debugDescription is not implemented, than the debugger will print out whatever -description returns, instead. -description is the same method that is called when an object is printed out with NSLog().
(more info: http://www.ultrasaurus.com/sarahblog/2011/11/debugging-objec...)