title: How to add NSDebug.h and use NSZombie in iPhone SDK
body: <p>I want to enable NSZombies for my iPhone app.</p>
  
  <p>I have read several articles online and I am still unsure of the exact procedure.</p>
  
  <p>I know I have to set the Environment Variables, which I have done:</p>
  
  <pre><code>NSZombieEnabled = YES
  NSDebugEnabled = YES
  NSDeallocateZombies = NO
  </code></pre>
  
  <p>I think (I'm not sure), I have to import NSDebug.h.
  When I check the headers of the Foundation Framework in my project, there is no NSDebug.h.</p>
  
  <p>After some research, I found them in the iPhoneSimulator Foundation Framework.
  So (and I'm not sure if this is correct), I imported the iPhoneSimualtor Foundation Framework into my project.
  I noticed that the file STILL does not show up in the project window, even though I can locate it in the Finder.(Is this normal behavior?).</p>
  
  <p>So I opened up main and added:</p>
  
  <pre><code>#ifdef TARGET_IPHONE_SIMULATOR
  #import &lt;Foundation/NSDebug.h&gt;
  #endif
  </code></pre>
  
  <p>I am not sure if that is right either.  After this I still can't get the NSZombie to work (unless I have misunderstood what it is supposed to do)
  I am expecting to see a log of " NSZombie sent a release... " or something.  But I don't see anything</p>
  
  <p>I'm sure I'm just not doing this right, a good step by step would be appreciated.
  Thanks</p>
  
  <p>Also of note, I have also enabled:</p>
  
  <pre><code>NSMallocStacklLogging = YES
  MallocStackLoggingNoCompact = YES
  </code></pre>