Re: Xcode 5 Debugger, local NSInteger variables always 0
Re: Xcode 5 Debugger, local NSInteger variables always 0
- Subject: Re: Xcode 5 Debugger, local NSInteger variables always 0
- From: Jeffrey Walton <email@hidden>
- Date: Tue, 01 Oct 2013 15:41:56 -0400
On Tue, Oct 1, 2013 at 3:17 PM, Markus Spoettl <email@hidden> wrote:
> Hello,
>
> in Xcode 5 the debugger fails to evaluate local NSInteger variables in the
> variables view correctly. Instead of the correct value it always displays 0.
> When printing the variable to the debugger console (via context menu), the
> output is correct.
> ...
>
> Any ideas?
What's the Debug and Optimization levels being used. For Debug builds,
you generally want -g3 so the symbol file includes #define's and
symbolic constants; and -O1 to ensure minimal optimizations are
performed. You can also use -O0, but that usually inhibits a lot of
source code analysis.
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden