Re: How to set a Foundation environment variable in the Xcode debugger
Re: How to set a Foundation environment variable in the Xcode debugger
- Subject: Re: How to set a Foundation environment variable in the Xcode debugger
- From: email@hidden
- Date: Mon, 26 Feb 2007 14:18:30 +0100 (CET)
- Importance: Normal
Double thanks to you "Half Activist" (since I haven't thanked you yet
for the help you gave me on my other post today). Just out of curiosity :
do you know how to do it when debugging from the ordinary
terminal instead of from Xcode ? Of course, I always use Xcode
for debugging, but this is a meaningful (if stupid) question in
itself ...
Cheers,
Ewan
> Hi again Ewan,
>
> You can set this variable by double-clicking your executable in
> Xcode, (locate the 'Executables' node in the project tree),
> In the window that opens, choose the 'Arguments' tab.
> The lower part of this tab allows you to declare environment
> variables to be set when launching your program.
> Click the '+' button, give the name NSZombieEnabled to the newly
> created entry, set its value to YES.
> Your program now launches with NSZombieEnabled defined as YES. (as
> long as you launch it with Xcode of course.)
>
> Regards.
>
> On Feb 26, 2007, at 1:57 PM, email@hidden wrote:
>
>>
>> Hello all,
>>
>> in table 9 of technical note number TN2124 (located
>> at
>> http://developer.apple.com/technotes/tn2004/
>> tn2124.html#TABFOUNDATIONVAR )
>> the
>> environment variable "NSZombieEnabled" is introduced and
>> explained ; when
>> set to YES this variable provides degugging help. However, I can't
>> figure
>> out how
>> to set this variable to YES in my Cocoa project. I tried the
>> following :
>>
>>
>> (*inside Xcode's "Debugger Console" pseudo-terminal *)
>> (gdb) set variable NSZombieEnabled=YES
>> Invalid cast.
>>
>> How should it be done ?
>>
>>
>> Ewan
>>
>>
>>
>> _______________________________________________
>>
>> Cocoa-dev mailing list (email@hidden)
>>
>> Do not post admin requests or moderator comments to the list.
>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>>
>> Help/Unsubscribe/Update your Subscription:
>> 40gmail.com
>>
>> This email sent to email@hidden
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden