Reputation: 10520
I've recently run into a really frustrating problem. When I set a breakpoint, and my program stops, the objects aren't shown in Xcode. I don't get the typical 'self' or any of my other objects. I tried restarting Xcode and my computer. I don't really know what else to do.
I'm running Xcode 4.6.1. Has anyone else run into this problem?
Upvotes: 1
Views: 113
Reputation: 8741
I usually get this error when I have compiler optimization turned on. The compiler will generate code which does not necessarily follow your code logic flow.
Go to your project in the navigator -> Target -> Build settings -> Search for optimization level -> expand optimization level -> select the debug line -> change to none in both columns of your project and target.
Hope this helps.
Upvotes: 1