iphone - Can you see the values of NSUserDefaults anywhere in the xcode debugger? -
Can you see the value of NSUserDefaults naywhere in the Exode Debugger?
Just wondering is this possible?
thanks
I do not have them in debugger There is a solution to see, but I can offer it:
NSUserDefaults * defaults = [NSUserDefaults StandardUserDefaults]; NSLog (@ "% @", [default dictionary report]);
For some caves-debugging :)
EDIT: As David comments in the comments, we can now do this in the debugging console:
po [[NSUserDefaults standard user default] dictionary report]
Swift 3.0
po UserDefaults.standard.dictionaryRepresentation () < / Code>
Comments
Post a Comment