Have you ever had to stop your program, insert a NSLog() to display a NSString variable just because the debugger in Xcode shows only the address?
Here is how you can see the content of a NSString during a debug session:
1. Right click/Context Menu - Show Formatted Summaries
2. Print Description of "variable"
The second method works with other object too, like dictionaries (in theory at least, haven't tested yet).
So.. I hope this helps you show a NSString in Xcode without stopping and recompiling the program.
No comments:
Post a Comment