一个简单的调试宏,用于在 DEBUG 构建中产生噪音,在其他情况下保持沉默。
#include "UHNDebug.h"
DLog(@"connected");
DLog(@"error: %@", error);
DLog(@"%s: %d items", __PRETTY_FUNCTION__, numItems);
还包括一个宏用于 LogDebugEvent
,以便与现有代码向后兼容。
将以下内容添加到您的 Podfile 中
pod 'UHNDebug', :git => "http://github.ehealthinnovation.org/jmoore/UHNDebug.git"
要指定版本
pod 'UHNDebug', :git => "http://github.ehealthinnovation.org/jmoore/UHNDebug.git", :tag => '0.1.0'
0.1.0 - 初次发布