I am facing a strange issue from last few days. NSLog
doesn't show anything in the debugger area. This issue is strange because NSLog
is working perfectly upto appDelegate
. I have some NSLog
statements in didFinishLaunching
method and these logs are shown in the console. Any NSLog
statements after this point is simply skipped.
I searched for any redefinitions like #define NSLog(...)
. But i couldn't find any.
Then I checked if the console is deactivated. Pressing Shift + + C, but it didn't help.
Also, the debugger is set to show All output.
If the app crashes,it normally used to show something like : Terminating app...Reason:..
. But now the app simply crashes. It doesn't show anything. So, after appDelegate, the console is dead.
What can be the issue? Anybody faced this before?
EDIT: The following is a similar issue. https://teamtreehouse.com/community/nslog-will-not-output-from-the-viewcontroller-class-but-will-from-the-appdelegate-class