Are you setting the environment variable correctly? The step by step guide is
- Double-click an executable in the Executables group of your Xcode project.
- Click the Arguments tab.
- In the “Variables to be set in the environment:” section, make a variable called “NSZombieEnabled” and set its value to “YES”.
You don’t need to #import NSDebug.h