Turning on 'DEBUG' macro value

前端 未结 3 1752
暗喜
暗喜 2020-12-29 00:32

In my code, I want to conditionally perform a few operations with:

#ifdef DEBUG
NSLog(@\"I\'m in debug mode\");
#endif

I\'ve configured Pro

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-29 01:15

    project -> settings -> c/c++ (or code generation?) look for a text box labeled Preprocessor Definitions and just add DEBUG to the end of the comment separated list.

提交回复
热议问题