iOS 内置 debug 工具, 欢迎使用和 star!

2018-02-13 19:49:01 +08:00
 liman

DebugMan

https://github.com/liman123/DebugMan

Debugger tool for iOS, support both Swift and Objective-C language.

Introduction

The author stole the idea from Dotzu JxbDebugTool SWHttpTrafficRecorder Sandboxer so that people can make crappy clones.

DebugMan has the following features:

Requirements

Installation

Use CocoaPods to install DebugMan by adding it to your Podfile:

platform :ios, '8.0'
use_frameworks!

target 'your_project' do
pod 'DebugMan', :configurations => ['Debug']
end

Usage

//Swift
#if DEBUG
    DebugMan.shared.enable()
#endif

//Objective-C
#ifdef DEBUG
    [[DebugMan shared] enableWithServerURL:nil ignoredURLs:nil onlyURLs:nil tabBarControllers:nil recordCrash:YES];
#endif

For more advanced usage, check in demo.

Screenshots

Note

Crash Reprting

The collapse of the statistical functions collected should only be called once, if the third party is also best to use only a third party, so access to the collapse of the statistical information is also the only way. Third-party statistical tools are not used as much as possible, the use of multiple crashes to collect third-party will lead to malicious coverage of NSSetUncaughtExceptionHandler() function pointer, resulting in some third-party can not receive the crash information.

Other Tips

Contact

Welcome to star and fork. If you have any questions, welcome to open issues.

1849 次点击
所在节点    分享发现
1 条回复
sangmong
2018-02-15 20:51:38 +08:00
滋瓷一下

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/430621

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX