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: Half Activist <email@hidden>
- Date: Mon, 26 Feb 2007 14:36:04 +0100
Hi once-again Ewan,
Well, I never did it, but since this is an environment variable, doing
export NSZombieEnabled=YES
or
set NSZombieEnabled=YES
in bash should be ok,
if you're using csh or tcsh I think this should be something like
setenv NSZombieEnabled YES
with no equals sign.
You might then want to give a look at your preferred shell (default
being bash since 10.3 i guess) documentation. ;-P
There are loads of tutorials on the net, each time I write a shell
script I read one, because I seldom use it.
Regards.
On Feb 26, 2007, at 2:18 PM, email@hidden wrote:
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