• 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: How to set a Foundation environment variable in the Xcode debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:07:04 +0100

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


  • Follow-Ups:
    • Re: How to set a Foundation environment variable in the Xcode debugger
      • From: email@hidden
References: 
 >How to set a Foundation environment variable in the Xcode debugger (From: email@hidden)

  • Prev by Date: Re: Implications of changing an app's bundle identifier
  • Next by Date: How to capture my desktop?
  • Previous by thread: How to set a Foundation environment variable in the Xcode debugger
  • Next by thread: Re: How to set a Foundation environment variable in the Xcode debugger
  • Index(es):
    • Date
    • Thread