|
25 | 25 |
|
26 | 26 | - [x] Shake to hide or show the black bubble. (Support iPhone device and simulator)
|
27 | 27 |
|
28 |
| -- [x] List all `print()` and `NSLog()` messages which have been written by developer in Xcode. |
29 |
| - |
30 |
| -- [x] List of all the network requests sent by the application. (Support `JSON` and Google's `Protocol buffers`) |
31 |
| - |
32 |
| -- [x] List crash errors. |
33 |
| - |
34 | 28 | - [x] Share network details via email or copy to clipboard when you are in the *Network Details* page.
|
35 | 29 |
|
36 | 30 | - [x] Copy logs. (Long press the text, then select all or select copy)
|
37 | 31 |
|
38 | 32 | - [x] Search logs by keyword.
|
39 | 33 |
|
| 34 | +- [x] List crash errors. |
| 35 | + |
| 36 | +- [x] List all `print()` and `NSLog()` messages which have been written by developer in Xcode. |
| 37 | + |
| 38 | +- [x] List of all the network requests sent by the application. (Support `JSON` and Google's `Protocol buffers`) |
| 39 | + |
40 | 40 | - [x] List application and device informations, including: *version*, *build*, *bundle name*, *bundle id*, *screen resolution*, *device*, *iOS version*
|
41 | 41 |
|
42 | 42 | - [x] List all sandbox folders and files, supporting to preview and edit.
|
@@ -68,49 +68,11 @@ github "CocoaDebug/CocoaDebug"
|
68 | 68 |
|
69 | 69 | ## Usage
|
70 | 70 |
|
71 |
| -### Swift |
72 |
| - |
73 |
| - //AppDelegate.swift |
74 |
| - |
75 |
| - #if DEBUG |
76 |
| - import CocoaDebug |
77 |
| - #endif |
78 |
| - |
79 |
| - #if DEBUG |
80 |
| - //If Use Google's Protocol buffers |
81 |
| - CocoaDebug.protobufTransferMap = [ |
82 |
| - "your_api_keywords_1": ["your_request_protobuf_className_1", "your_response_protobuf_className_1"], |
83 |
| - "your_api_keywords_2": ["your_request_protobuf_className_2", "your_response_protobuf_className_2"], |
84 |
| - "your_api_keywords_3": ["your_request_protobuf_className_3", "your_response_protobuf_className_3"] |
85 |
| - ] |
86 |
| - CocoaDebug.enable() |
87 |
| - #endif |
88 |
| - |
89 |
| - public func print<T>(file: String = #file, function: String = #function, line: Int = #line, _ message: T, color: UIColor = .white) { |
90 |
| - #if DEBUG |
91 |
| - swiftLog(file, function, line, message, color, false) |
92 |
| - #endif |
93 |
| - } |
94 |
| - |
95 |
| -### Objective-C |
96 |
| - |
97 |
| - //AppDelegate.m |
98 |
| - |
99 |
| - #ifdef DEBUG |
100 |
| - @import CocoaDebug; |
101 |
| - #endif |
102 |
| - |
103 |
| - #ifdef DEBUG |
104 |
| - //If Use Google's Protocol buffers |
105 |
| - CocoaDebug.protobufTransferMap = @{ |
106 |
| - @"your_api_keywords_1": @[@"your_request_protobuf_className_1", @"your_response_protobuf_className_1"], |
107 |
| - @"your_api_keywords_2": @[@"your_request_protobuf_className_2", @"your_response_protobuf_className_2"], |
108 |
| - @"your_api_keywords_3": @[@"your_request_protobuf_className_3", @"your_response_protobuf_className_3"] |
109 |
| - }; |
110 |
| - [CocoaDebug enable]; |
111 |
| - #endif |
| 71 | + Launch application and debug with `CocoaDebug `. |
| 72 | + |
| 73 | + Have Fun! 😀😀😀 |
112 | 74 |
|
113 |
| -### More |
| 75 | +### More Advanced Usage |
114 | 76 |
|
115 | 77 | #ifdef DEBUG
|
116 | 78 | [CocoaDebugTool logWithString:string];
|
|
0 commit comments