Turning on 'DEBUG' macro value

前端 未结 3 1755
暗喜
暗喜 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:11

    The above solutions seem like SDK 3.0 solutions, I'm still living in a 2.2.1 world with XCode 3.1.

    This link did the trick for me, complete with pictures!

提交回复
热议问题