http://www.cocoachina.com/ios/20160927/17656.html
#在pch中添加下面代码。(可以自定义)
#ifdef DEBUG
#define KDLOG(format, ...) printf("%s [第%d行] %s", __FUNCTION__, __LINE__, [[NSString stringWithFormat:format, ## __VA_ARGS__] UTF8String]);
#else
#define KDLOG(...) ;
#endif