I have an external accessory plugged in my iPad. I cannot see my NSLog statements because my ipad can no longer be connected to my computer. Is there a way to still see the NSLog statements?
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.
Yes, you can redirect your NSLog statements to a file for later display. See Logging to a file on the iPhone.
This will cause log statements to be written to a named file. If you’re wondering how it works, look up how C text input/output works, with stdin, stdout and stderr.
You could just save that file to your Documents directory, and retrieve it through iTunes File Sharing. Or, you can have the app dump its log contents to the console once your device is plugged back in. Remember to disable that redirection first.