CCDebug 2.0.3

CCDebug 2.0.3

ai mac 维护。



CCDebug 2.0.3

  • cc

CCDebug for iOS & OS X

CCDebug : 一个灵活、轻量、可扩展、可定制的日志调试工具(支持iOS & OS X)

=======================

https://github.com/ccworld1000/CCDebug.git

首先:安装XcodeColors

如果您希望支持颜色显示,请先安装插件,否则忽略。

https://github.com/robbiehanson/XcodeColors

支持 Xcode 4、5、6、7、8、9 & 10

pod install

pod 'CCDebug'

代码示例

+ (void) logTest {
    [CCDebug debugLogSwitch: YES];
    
    [CCDebug enableNSLogPrefix: NO];
    
    /**
     *  colorRGBEnable | [XcodeColors installation] https://github.com/robbiehanson/XcodeColors
     *  screenshot https://github.com/ccworld1000/CCDebug
     *  @param showColor showColor description
     */
    [CCDebug colorRGBEnable: YES];  // YES if support XcodeColors
    [CCDebug warningCustomColors:60 green:120 blue:60];
    
    
    [CCDebug colorRGBEnable: NO];   // NO if Not support XcodeColors
    
    CCDebugWarningPrint(@"cc warning");
    CCDebugErrorPrint(@"cc error");
    CCDebugPrint(@"cc log");
    
    CCDebugTimerPrint(@"NStimer test");
    
    say(@"say ...");
    error(@"error ...");
    warning(@"warning ...");
}

屏幕截图

MacOS

CCDebug Mac Screenshot

iOS

CCDebug iOS Screenshot

MacOS Xcode_8.3.2

CCDebug Mac Xcode_8.3.2 Screenshot

iOS Xcode_8.3.2

CCDebug iOS Xcode_8.3.2 Screenshot

CCDebug

CCDebug 简单支持 machosx 和 iOS,可简单替换 NSLog。

MIT 许可证


MIT 许可证

版权所有(c)2016-至今 ccworld1000 | 错误:[邮箱地址] [email protected]

在此特此授予任何获得本软件及其相关文档文件(统称为“软件”)副本的个人以免费方式在软件上无限制地进行处理的权限,包括但不限于使用、复制、修改、合并、发布、分发、转授许可以及/或销售软件副本的权限,并允许提供给软件的个人进行此类操作,但需遵守以下条件:

以上版权声明和本许可声明应包括在软件的所有副本或实质性部分中。

软件按“现状”提供,不提供任何形式的明示或暗示保证,包括但不限于适用性保证、特定用途保证和侵权责任保证。在任何情况下,作者或版权所有者均不对任何索赔、损害或其他法律责任负责,不论该责任是因为合同、侵权或其他原因产生的,也不论其与软件的提供、使用或其他操作系统有关。