er.mobileapp
er.mobileapp

Reputation: 1307

Show description of error iphone

Is there any command which shows the decription of the error on xcode console. When we debug the application and if there is some error on the console and i want to see the error decription. Tell me the command. Thanks in Advance

Upvotes: 0

Views: 298

Answers (1)

Claus Broch
Claus Broch

Reputation: 9212

If you mean an NSError object, you can use the following:

NSLog(@"Bummer: %@", [error localizedDescription]);

Upvotes: 1

Related Questions