Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the DEBUG macro defined?

When I run code such as the following:

- (void)viewDidLoad
{

#ifdef DEBUG
    NSLog(@"debug");
#else
    NSLog(@"here");
#endif
    [super viewDidLoad];
}

I see "debug" printed in the log, but I did not define DEBUG explicitly. Where is it defined?

like image 732
itenyh Avatar asked May 24 '12 06:05

itenyh


1 Answers

It is most likely defined in your Build Settings under Preprocessor Macros.

Here is an example from one of my projects Here is an example from one of my projects

like image 120
Ben Trengrove Avatar answered Jan 15 '23 20:01

Ben Trengrove