All Projects → ApesTalk → DebugWindow

ApesTalk / DebugWindow

Licence: MIT license
一个在真机上测试时方便查看输出日志的小工具。(A debug tool which helps you view the console logs on the device when you test you APP.)

Programming Languages

objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to DebugWindow

logserver
web log viewer that combines logs from several sources
Stars: ✭ 20 (-44.44%)
Mutual labels:  logs, debug
CodeBaseManager
Multi-langage CLI tool to manage your code base
Stars: ✭ 11 (-69.44%)
Mutual labels:  debug, testing-tools
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (+55.56%)
Mutual labels:  logs, debug
Wasmite
Now WebAssembly has proper testing, unit-testing and debugging 🤗
Stars: ✭ 20 (-44.44%)
Mutual labels:  debug, testing-tools
android-sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 39 (+8.33%)
Mutual labels:  logs, debug
Cabin
🌲 Cabin is the best JavaScript and Node.js logging service and logging npm package
Stars: ✭ 622 (+1627.78%)
Mutual labels:  logs, debug
React Native Logs
Performance-aware simple logger for React-Native with namespaces, custom levels and custom transports (colored console, file writing, etc.)
Stars: ✭ 84 (+133.33%)
Mutual labels:  logs, debug
abap-log-exporter
Exports SAP Netweaver logs to a log system of your choice.
Stars: ✭ 31 (-13.89%)
Mutual labels:  logs
engarde
Parse default envoy (and istio-proxy) access logs like a champ with engarde and jq
Stars: ✭ 82 (+127.78%)
Mutual labels:  logs
scenarioo
Scenarioo Docu Viewer for Automated Documentation using UI/E2E-Tests
Stars: ✭ 62 (+72.22%)
Mutual labels:  testing-tools
meteorman
A DDP client with GUI (The Postman for Meteor)
Stars: ✭ 51 (+41.67%)
Mutual labels:  testing-tools
krumo
Krumo: Structured information display solution for PHP
Stars: ✭ 74 (+105.56%)
Mutual labels:  debug
network image mock
Mock response for Image.network to help Flutter widget tests pass.
Stars: ✭ 22 (-38.89%)
Mutual labels:  testing-tools
SWELF
Simple Windows Event Log Forwarder (SWELF). Its easy to use/simply works Log Forwarder and EVTX Parser. Almost in full release here at https://github.com/ceramicskate0/SWELF/releases/latest.
Stars: ✭ 23 (-36.11%)
Mutual labels:  logs
ruby-dns-mock
DNS mock server written on 💎 Ruby. Mimic any DNS records for your test environment with fake DNS server.
Stars: ✭ 50 (+38.89%)
Mutual labels:  testing-tools
awesome-cypress
🎉 A curated list of awesome things related to Cypress
Stars: ✭ 274 (+661.11%)
Mutual labels:  testing-tools
winston-dev-console
Winston@3 console format aimed to improve development UX
Stars: ✭ 88 (+144.44%)
Mutual labels:  debug
bugsnag-vue
[DEPRECATED] This package now lives within the monorepo for our Universal JS notifier "@bugsnag/js" • https://github.com/bugsnag/bugsnag-js
Stars: ✭ 26 (-27.78%)
Mutual labels:  debug
debug
A tiny JavaScript debugging utility modelled after Node.js core's debugging technique. Works in Node.js and web browsers
Stars: ✭ 10,554 (+29216.67%)
Mutual labels:  debug
mock-hls-server
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.
Stars: ✭ 61 (+69.44%)
Mutual labels:  testing-tools

DebugWindow

一个在真机上测试时方便查看输出日志的小工具。

在我们实际开发中经常要配合测试进行debug,在真机上测试的时候很难看到控制台的输出日志。真机连接在电脑上进行测试的时候还好,但是有些功能测试的时候可能需要程序杀死重新打开。比如在测试推送功能的时候,需要测试程序在杀死的情况下收到推送怎么处理。这个时候很难看到推送内容是什么,要想根据推送内容写具体的处理逻辑就很不方便了。比如程序莫名其妙地闪退了,你想定位bug却很难看到奔溃日志?比如想查看真机上沙盒中保存的某个值?再比如测试人员在测试过程中想查看当前加载的网页的完整链接(包括自己拼接的参数等等)?再比如想动态修改本地保存的一个状态值而不用重启APP?😂这个时候是不是很想来一个不影响程序的正常运行又可以实时查看打印日志的轮子😉

这个小工具实现了以下功能:

  • 每次程序启动就新建一个以当前时间命名的日志文件。
  • 自定义打印日志的方法,调用后将把日志记录于文件中。
  • 重定向NSLog输出日志到文件中,这样你就不用替换到你项目中已有的NSLog()代码啦。
  • 重定向程序奔溃日志到文件中。
  • 自动根据当前设备信息选择要不要记录日志的同时把日志打印到控制台。
  • 方便增删改查当前沙盒中保存的键值对。
  • 通过iTunes查看设备上的日志文件。(真机连接iTunes,通过iTunes的设置->应用->文件共享,找到DebugWindow,就可以看到Logs文件夹。)
  • 在日志文件中搜索并高亮字符串。

看完介绍是不是心情有点小激动甚至想“来一发”😂

使用方法

  • 将DebugWindow文件夹下的类引入你的项目。
  • 在程序启动时调用[YLDebugWindow startDebug]方法开启日志记录。
  • 如果需要自定义打印日志,调用YLLog()方法,你也可以根据自己实际情况修改该方法。

注意事项

  • 建议在往沙盒中存数据的时候将所有key都带上特定前缀,比如我这里是"kYL"开头的,这样在获取沙盒中键值对的时候方便只看自己保存的键值对。
  • 默认在模拟器上和真机连接在电脑上的时候是不把NSLog输出和异常输出日志记录到文件中的,如果需要在模拟器上看效果,可以修改YLLogTool的needRedirect方法。

更新记录

---2017-05-11---

- 使用UIWebView替代QLPreviewController来预览日志文件。
- 解决中文乱码问题。
- 在日志文件中搜索并高亮字符串。
- 增删改查当前沙盒中保存的键值对,方便调试。

效果图

参考

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].