coder
coder

Reputation: 10520

Xcode breakpoints not showing current objects

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?

enter image description here

Upvotes: 1

Views: 113

Answers (1)

Khaled Barazi
Khaled Barazi

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

Related Questions