iPhone ã¢ããªããããã°ããã¨ãã«ãã½ã¼ã¹ã« NSLog ããã®ã¾ã¾æ¸ãã¦ãã¾ãã¨ããªãªã¼ã¹æã«åé¤ããã®ãé¢åãªã®ã§ã以ä¸ã®ãããªãã¯ãã使ã£ã¦ãã¾ãã #ifdef DEBUG # define LOG(...) NSLog(__VA_ARGS__) # define LOG_METHOD NSLog(@"%s", __func__) #else # define LOG(...) ; # define LOG_METHOD ; #endif 使ãæ¹ã¯ãã¾ãããã¸ã§ã¯ãã®è¨å®ãéãããDebugãæ§æãé¸æãã¦ãããä¸çªä¸ã®ã¦ã¼ã¶å®ç¾©ã«ãã´ãªã®ãGCC_PREPROCESSOR_DEFINITIONSãã«ãDEBUGãã追å ãã¦ããã¾ãã ãããããã¨ã§ãDebug build ã®ã¨ãã«ã ããDEBUGããå®ç¾©ããã¾ãã ãã¨ã¯ãNSLog ã®ä»£ããã« LOG ã使ãããã«ããã°
{{#tags}}- {{label}}
{{/tags}}