Re: Setting Debug Mode?
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