• 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: Setting Debug Mode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Debug Mode?


  • Subject: Re: Setting Debug Mode?
  • From: Jeffrey Walton <email@hidden>
  • Date: Mon, 12 Sep 2011 19:45:01 -0400

On Mon, Sep 12, 2011 at 7:17 PM, Mark Wagner <email@hidden> wrote:
> On Mon, Sep 12, 2011 at 10:35, Todd <email@hidden> wrote:
>> XCode 3.2.6 and 10.6.8, targeting 10.4u SDK
>> I am taking over on a project that just has one 'active target' and I cannot
>> tell if it is release or debug.
>> What is happening is I am getting some EXEC_BAD_ACCESS and when I try and
>> ass a variable to the expression window I get an 'unable to access 'variable
>> name'' message in the debugger console.
>> I recall this could happen if there was no debug target...
>> I build the target and then do a build and debug, my break points are
>> working, etc as well
>> Any thoughts?
>
> There's no such thing as "debug mode" or a "debug target" inherent in
> Xcode.  Typically, what distinguishes a debugging target from a
> release target is that the debugging target is set to generate debug
> symbols and is not optimized, while a release target uses some level
> of optimization.
-g3 retains symbolic constants, which is not related to optimizations
(-Ox). Its unfortunate that Xcode does set up a project with a debug
configuration that uses -g3.

In addition, functions such as 'assert' have different behavior in
'debug' versus 'non-debug' builds (based on the NDEBUG macro). See
http://pubs.opengroup.org/onlinepubs/009695399/functions/assert.html.

> An "Unable to access variable" message means either no debug symbols
> were generated, or that the variable in question was optimized out of
> existence.

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

References: 
 >Setting Debug Mode? (From: Todd <email@hidden>)
 >Re: Setting Debug Mode? (From: Mark Wagner <email@hidden>)

  • Prev by Date: Carbon .nibs/.xibs
  • Next by Date: Re: Where is Customize button in Xcode 4.1 installer?
  • Previous by thread: Re: Setting Debug Mode?
  • Next by thread: [Xcode 4.1] Is there any way to speed up code complete?
  • Index(es):
    • Date
    • Thread