• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Xcode 5 Debugger, local NSInteger variables always 0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Xcode 5 Debugger, local NSInteger variables always 0
      • From: Sean McBride <email@hidden>
    • Re: Xcode 5 Debugger, local NSInteger variables always 0
      • From: Markus Spoettl <email@hidden>
References: 
 >Xcode 5 Debugger, local NSInteger variables always 0 (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Xcode 5 Debugger, local NSInteger variables always 0
  • Next by Date: Re: Xcode 5 Debugger, local NSInteger variables always 0
  • Previous by thread: Xcode 5 Debugger, local NSInteger variables always 0
  • Next by thread: Re: Xcode 5 Debugger, local NSInteger variables always 0
  • Index(es):
    • Date
    • Thread