Is there a way to nicely print dictionaries in XCode during debugging? Selecting print description to console is ugly.
Is there a way to nicely print dictionaries in XCode during debugging? Selecting print
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use a Category on NSDictionary and override
- (NSString *)description.(This way it automagically applies to all your existing NSDictionaries)
Below is a sample formatting, but you could change it to look like anything you want.