ã¡ãã£ã¨ããç´°ããäºãªãã§ããã©ãè¨å®ã¨ãimportã¨ã ããã¸ã§ã¯ããè·¨ãã£ã¦ä½¿ããããªãã¤ã¯æåã«ãã¡ã«ãã£ã¦ããã¨å¤ããã§ããã©ã ãã®è¾ºã®ãã¿ãå°ã ã»ã»ã» 1.NSLogã®æ¡å¼µã¨ãprefix.pch NSLogã¯ãã³ã³ã½ã¼ã«ã«ãã®å 容ãåºåãã¦ãããããã§ããã NSLog(@"%s",__PRETTY_FUNCTION__); NSLog(@"%d",__LINE__); ã¨ããã¨ã __PRETTY_FUNCTION__ï¼ã¯ã©ã¹åã³é¢æ°å __LINE__ï¼è¡æ° ãªã©ã表示ãã¦ããã¾ãã ãã ãæ¯åãããè¨è¿°ããã®ã¯ã é¢åãªã®ã§ã ããããã¯ãã«ããããã¾ããã #define LOG(fmt,...) NSLog((@"%s %d "fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); ãããããããããã¡ã¤ã«ãªã©ã«è¨è¿°
{{#tags}}- {{label}}
{{/tags}}