views:

40

answers:

0

Hi,

i have a rather odd problem with the Xcode debugger. In my iPhone application project I'm able to debug some of the files but not all, some of them simply won't allow me to view variable values.

I first thought of a configuration problem of my project itself, but when I copy my project say from /A/projectdir to /B/projectdir or rename the projectdir to something else I don't get this strange behaviour and everything works. So the settings won't seem to be the problem, at least the settings from the project itself.

I tried to delete the plist, Application Support directory and the Cache directory from Xcode but with no effect.

Someone have an answer to that?! I simply don't know how to fix it -.-

Greetings

EDIT: Some further information... copying still solves the problem but I also found the culprit. It seems that an "Optimization Level" of -O0 (as it should be) doesn't seems to work. When I set it to an higher level it works... Now I'm really confused.

First of: For debugging it should always be set to -O0 as I'm aware

Second: The settings doesn't change when copied but it works?!