I see strange behavior with the Xcode 6 debugger. I created a generic singleton instance using the following code:
+ (instancetype)shared { static DataBaseManager *sharedInstance = nil; static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ sharedInstance = [[DataBaseManager alloc] init]; }); return sharedInstance; }
Immediately after initializing the object, calling the method as follows:
DataBaseManager *manager = [DataBaseManager shared]; NSLog(@"");
I set a breakpoint in "NSLog" and I see the following debugger status:

I made sure that I start in debug mode, and that the build settings are fine, following the following question: The Xcode debugger does not print objects and shows zero when they are not
Any ideas on why this is happening? This is the first time I have seen such strange behavior. Any help is appreciated.
**UPDATE** A bug was reported to apple bug report system. The bug status is: Duplicate of 17164538 (Closed) so it is probably a known bug in Xcode.
source share