I have a strange issue and possibly a bug. My NSLog statements have stopped working completely, they do not print even in view did load, application didfinishlaunching etc. The have all turned a brown colour (the same colour as a pragma mark in xcode) and they all have a warning saying 'expression result unused'. Has anyone ever seen this before or know what to do? Am i running in some kind of weird mode? Im running xcode 4.0.2.
Many thanks
Jules
#define NSLog
to see if NSLog is redefined elsewhere. The XCode console part of NSLog is just afprintf
, there is no reason it should stop working unless it is redefined or redirected withfreopen
. Theexpression result unused
part means what it says, and a common cause is to use something like*var++
instead(*var)++
. – Jano