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

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -