3 ms·
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 whe
by Zev 15y ago
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().
(more info: http://www.ultrasaurus.com/sarahblog/2011/11/debugging-objective-c-in-xcode-for-ios/ http://www.ultrasaurus.com/sarahblog/2011/11/debugging-objec...)