| <img alt="logo" src="https://raw.githubusercontent.com/CocoaDebug/CocoaDebug/master/pic/logo.png" width="250"/> | <ul align="left"><li><a href="https://github.com/CocoaDebug/CocoaDebug/wiki/%E4%B8%AD%E6%96%87%E4%BB%8B%E7%BB%8D">中文介绍</a><li><a href="#introduction">Introduction</a><li><a href="#installation">Installation</a><li><a href="#usage">Usage</a><li><a href="#parameters">Parameters</a></ul> |
| -------------- | -------------- |
| Travis CI | [![Build Status](https://travis-ci.org/CocoaDebug/CocoaDebug.svg?branch=master)](https://travis-ci.org/CocoaDebug/CocoaDebug) |
| Codacy | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/6aac8606d10f403a811cafdf870bb552)](https://www.codacy.com/app/CocoaDebug/CocoaDebug?utm_source=github.com&utm_medium=referral&utm_content=CocoaDebug/CocoaDebug&utm_campaign=Badge_Grade) |
| Codecov | [![codecov](https://codecov.io/gh/CocoaDebug/CocoaDebug/branch/master/graph/badge.svg)](https://codecov.io/gh/CocoaDebug/CocoaDebug) |
| Frameworks | [![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![CocoaPods Compatible](https://img.shields.io/cocoapods/v/CocoaDebug.svg)](https://img.shields.io/cocoapods/v/CocoaDebug.svg) |
| Languages | ![Languages](https://img.shields.io/badge/languages-Swift%20%7C%20ObjC-blue.svg) |
| Platform | ![Platform](https://img.shields.io/badge/platforms-iOS%208.0+-blue.svg) |
| Licence | <img src="https://img.shields.io/badge/license-MIT-blue.svg?style=flat" alt="License MIT"/> |
<span style="float:none" />
## Introduction
![example](https://raw.githubusercontent.com/CocoaDebug/CocoaDebug/master/pic/example.gif)
- [x] Shake to hide or show the black bubble. (support both device and simulator)
- [x] Long press the black bubble to show `UIDebuggingInformationOverlay`. (Apple's Private API, support iOS 10/11/12)
- [x] Application memory usage and *FPS*.
- [x] List all `print()` and `NSLog()` messages which have been written by developer in Xcode.
- [x] List of all the network requests sent by the application.
- [x] List crash errors.
- [x] Share network details via email or copy to clipboard when you are in the *Network Details* page.
- [x] Copy logs. (long press the text, then select all or select copy)
- [x] Search logs by keyword.
- [x] List application and device informations, including: *version*, *build*, *bundle name*, *bundle id*, *screen resolution*, *device*, *iOS version*
- [x] List all sandbox folders and files, supporting to preview and edit.
- [x] List HTML logs, including `console.log()`,`console.debug()`,`console.warn()`,`console.error()`,`console. info()`. (support both `WKWebView` and `UIWebView`).
- [x] Support `JSON` and Google's `Protocol buffers`
## Installation
### CocoaPods
```ruby
target 'YourTargetName' do
pod 'CocoaDebug', :configurations => ['Debug']
end
```
### Carthage
```ogdl
github "CocoaDebug/CocoaDebug"
```
### Framework
[Download](https://github.com/CocoaDebug/CocoaDebug/raw/master/CocoaDebug.framework.zip)
> WARNING: Don't submit `.ipa` to AppStore which has been linked with the `CocoaDebug.framework`. This [Integration Guide](https://github.com/CocoaDebug/CocoaDebug/wiki/Integration-Guide) outline a way to use build configurations to isolate linking the framework to `Debug` builds only.
## Usage
### Swift
//AppDelegate.swift
#if DEBUG
import CocoaDebug
#endif
#if DEBUG
CocoaDebug.enable()
#endif
public func print<T>(file: String = #file, function: String = #function, line: Int = #line, _ message: T, color: UIColor = .white) {
#if DEBUG
swiftLog(file, function, line, message, color, false)
#endif
}
### Objective-C
//AppDelegate.m
#ifdef DEBUG
@import CocoaDebug;
#endif
#ifdef DEBUG
[CocoaDebug enable];
#endif
> Please check `Example_Swift.xcodeproj` and `Example_Objc.xcodeproj` for more advanced usage.
> NOTE: Be careful with `Other Swift Flags` & `Preprocessor Macros` when using Swift & Objective-C in one project. You can refer to [here](https://stackoverflow.com/questions/24111854/in-absence-of-preprocessor-macros-is-there-a-way-to-define-practical-scheme-spe).
## Parameters
When you initialize CocoaDebug, you can customize the following parameter values before `CocoaDebug.enable()`.
- `serverURL` - If the crawled URLs contain server URL ,set these URLs bold font to be marked. not mark when this value is nil. default value is **nil**.
- `ignoredURLs` - Set the URLs which should not crawled, ignoring case, crawl all URLs when the value is nil. default value is **nil**.
- `onlyURLs` - Set the URLs which are only crawled, ignoring case, crawl all URLs when the value is nil. default value is **nil**.
- `tabBarControllers` - Set controllers to be added as child controllers of UITabBarController. default value is **nil**.
- `logMaxCount` - The maximum count of logs which CocoaDebug display. default value is **1000**.
- `emailToRecipients` - Set the initial recipients to include in the email’s “To” field when share via email. default value is **nil**.
- `emailCcRecipients` - Set the initial recipients to include in the email’s “Cc” field when share via email. default value is **nil**.
- `mainColor` - Set the main color with hexadecimal format. default value is **#42d459**.
## TODO
- [Unit Testing](https://codecov.io/gh/CocoaDebug/CocoaDebug)
## Thanks
Special thanks to [remirobert](https://github.com/remirobert).
## License
CocoaDebug is released under the [MIT license](https://github.com/CocoaDebug/CocoaDebug/blob/master/LICENSE).
没有合适的资源?快使用搜索试试~ 我知道了~
CocoaDebug:一个 iOS 调试工具,支持 Debug 模式下查看 App 日志.zip
共501个文件
png:181个
h:111个
m:89个
需积分: 42 0 下载量 20 浏览量
2019-10-10
18:10:39
上传
评论
收藏 10.69MB ZIP 举报
温馨提示
CocoaDebug:一个 iOS 调试工具,支持 Debug 模式下查看 App 日志.zip,iOS调试工具
资源推荐
资源详情
资源评论
收起资源包目录
CocoaDebug:一个 iOS 调试工具,支持 Debug 模式下查看 App 日志.zip (501个子文件)
_fishhook.c 8KB
example.gif 1.44MB
issue-14.gif 247KB
.gitattributes 55B
.gitignore 1KB
_GPBDictionary.h 187KB
_GPBArray.h 59KB
ASIHTTPRequest.h 45KB
AFURLSessionManager.h 29KB
_GPBCodedOutputStream.h 23KB
AFURLRequestSerialization.h 22KB
AFHTTPSessionManager.h 20KB
_GPBMessage.h 18KB
_GPBUtilities.h 17KB
_GPBDictionary_PackagePrivate.h 15KB
_GPBUtilities_PackagePrivate.h 14KB
_Type.pbobjc.h 13KB
_GPBDescriptor_PackagePrivate.h 12KB
AFURLResponseSerialization.h 12KB
_GPBDescriptor.h 11KB
_Api.pbobjc.h 10KB
_CustomHTTPProtocol.h 9KB
_GPBWellKnownTypes.h 9KB
AFNetworkReachabilityManager.h 8KB
_FieldMask.pbobjc.h 8KB
_GPBCodedInputStream.h 8KB
ASIHTTPRequestClient.h 7KB
_GPBCodedOutputStream_PackagePrivate.h 6KB
_Struct.pbobjc.h 6KB
AFSecurityPolicy.h 6KB
_GPBBootstrap.h 6KB
_Timestamp.pbobjc.h 5KB
_GPBMessage_PackagePrivate.h 5KB
_Any.pbobjc.h 5KB
_GPBCodedInputStream_PackagePrivate.h 5KB
ASICacheDelegate.h 5KB
_GPBRuntimeTypes.h 5KB
_QNSURLSessionDemux.h 5KB
ASINetworkQueue.h 5KB
_Wrappers.pbobjc.h 4KB
ASIS3Request.h 4KB
_Duration.pbobjc.h 4KB
Reachability.h 4KB
ASIWebPageRequest.h 4KB
_GPBExtensionRegistry.h 4KB
ASIS3ObjectRequest.h 4KB
_GPBArray_PackagePrivate.h 3KB
ASICloudFilesObjectRequest.h 3KB
_CanonicalRequest.h 3KB
_GPBUnknownField.h 3KB
_CacheStoragePolicy.h 3KB
_GPBWireFormat.h 3KB
_fishhook.h 3KB
_GPBUnknownFieldSet.h 3KB
ASIFormDataRequest.h 3KB
ASIS3BucketRequest.h 3KB
_GPBUnknownFieldSet_PackagePrivate.h 2KB
_GPBExtensionInternals.h 2KB
_GPBProtocolBuffers.h 2KB
_MLBFileInfo.h 2KB
CocoaDebug.h 2KB
_GPBRootObject.h 2KB
_GPBUnknownField_PackagePrivate.h 2KB
_GPBRootObject_PackagePrivate.h 2KB
ASIDownloadCache.h 2KB
_GPBProtocolBuffers_RuntimeSupport.h 2KB
ASICloudFilesCDNRequest.h 2KB
ASIDataCompressor.h 2KB
_SourceContext.pbobjc.h 2KB
ASIDataDecompressor.h 2KB
_Empty.pbobjc.h 2KB
ASIProgressDelegate.h 2KB
AFNetworking.h 2KB
ASIHTTPRequestDelegate.h 2KB
ASIS3BucketObject.h 2KB
_HttpModel.h 2KB
ASICloudFilesContainerRequest.h 1KB
_Sandboxer-Header.h 1KB
ASIHTTPRequestConfig.h 1KB
ASIAuthenticationDialog.h 1KB
_Sandboxer.h 1KB
ASICloudFilesRequest.h 1KB
_Swizzling.h 1KB
ASIS3Bucket.h 972B
ASIInputStream.h 969B
_NSObject+Categories.h 931B
ASINSXMLParserCompat.h 867B
_OCLogModel.h 845B
ASICloudFilesContainer.h 833B
_NetworkHelper.h 816B
ASIS3ServiceRequest.h 805B
ASICloudFilesContainerXMLParserDelegate.h 774B
_WHDebugMonitor.h 645B
_OCLogStoreManager.h 618B
ASICloudFilesObject.h 600B
CocoaDebug.h 512B
_ObjcLog.h 445B
_HttpDatasource.h 439B
_OCLogHelper.h 428B
_WHDebugConsoleLabel.h 402B
共 501 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
weixin_38743481
- 粉丝: 694
- 资源: 4万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功