All Projects → android10 → Frodo

android10 / Frodo

Android Library for Logging RxJava Observables and Subscribers.

Programming Languages

java
68154 projects - #9 most used programming language
groovy
2714 projects

Projects that are alternatives of or similar to Frodo

Frodo2
Android Library for Logging RxJava2 Components
Stars: ✭ 142 (-90.51%)
Mutual labels:  debugger, debugging, debugging-tool, android-development
Gdb Frontend
☕ GDBFrontend is an easy, flexible and extensionable gui debugger.
Stars: ✭ 2,104 (+40.64%)
Mutual labels:  debugger, debugging, debugging-tool
docker-pudb
Debug Python code within a Docker container remotely from your terminal using pudb
Stars: ✭ 18 (-98.8%)
Mutual labels:  debugger, debugging, debugging-tool
madbomber
Backtrace-on-throw C++ exception logger
Stars: ✭ 17 (-98.86%)
Mutual labels:  debugger, debugging, debugging-tool
TrackJS-Node
TrackJS Error Monitoring agent for NodeJS
Stars: ✭ 26 (-98.26%)
Mutual labels:  debugger, debugging, debugging-tool
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+151.94%)
Mutual labels:  debugger, debugging, debugging-tool
Vuetron
A tool for testing and debugging your Vue + Vuex applications. 是一個可以幫助您 Vue.js 的項目測試及偵錯的工具, 也同時支持 Vuex及 Vue-Router.
Stars: ✭ 531 (-64.51%)
Mutual labels:  debugger, debugging-tool
Dbgshell
A PowerShell front-end for the Windows debugger engine.
Stars: ✭ 566 (-62.17%)
Mutual labels:  debugger, debugging
Android Oss
Kickstarter for Android. Bring new ideas to life, anywhere.
Stars: ✭ 5,627 (+276.14%)
Mutual labels:  rxjava, android-development
Vim Padre
Debugger plugin for VIM
Stars: ✭ 42 (-97.19%)
Mutual labels:  debugger, debugging-tool
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+147.99%)
Mutual labels:  debugging, debugging-tool
Bugsnag Laravel
Bugsnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
Stars: ✭ 746 (-50.13%)
Mutual labels:  debugging, debugging-tool
Power trace
Buff exception backtrace with local variables, passed in arguments and instance variables!
Stars: ✭ 48 (-96.79%)
Mutual labels:  debugging, debugging-tool
Traceur
Easier RxJava2 debugging with better stacktraces
Stars: ✭ 502 (-66.44%)
Mutual labels:  rxjava, debugging-tool
Snoop
A powerful set of Python debugging tools, based on PySnooper
Stars: ✭ 467 (-68.78%)
Mutual labels:  debugger, debugging
Python Hunter
Hunter is a flexible code tracing toolkit.
Stars: ✭ 599 (-59.96%)
Mutual labels:  debugger, debugging
Superdump
A service for automated crash-dump analysis
Stars: ✭ 384 (-74.33%)
Mutual labels:  debugging, debugging-tool
Bugsnag Android
Bugsnag crash monitoring and reporting tool for Android apps
Stars: ✭ 990 (-33.82%)
Mutual labels:  debugging, debugging-tool
Robin
Robin is a logging library for Bundle data passed between Activities and fragments. It also provides a callback to send screen views of user visited pages to your analytics client
Stars: ✭ 63 (-95.79%)
Mutual labels:  debugging, debugging-tool
Ios Sdk
AppSpector is a debugging service for mobile apps
Stars: ✭ 56 (-96.26%)
Mutual labels:  debugger, debugging-tool

Frodo

Hex.pm Platform Download

Frodo is an android library inspired by Jake Wharton's Hugo, mainly used for logging RxJava Observables and Subscribers outputs on the logcat. It generates and weaves code based on annotations only on debug versions of the application where the plugin is applied, for instance, it is safe to persist any Frodo annotation in the codebase.

frodo_hug

Main Features

  • @RxLogObservable: Annotated methods which return rx.Observables will print the following information when emitting items:

frodo_observable

    @RxLogObservable
    public Observable<List<MyDummyClass>> list() {
        return Observable.just(buildDummyList());
    }
  • @RxLogObservable.Scope Options: It is possible to narrow down the debug information shown by adding a debugging scope to @RxLogObservable annotation.

    • Scope.EVERYTHING: Logs stream data, schedulers and rx.Observable events. Default.
    • Scope.STREAM: Logs rx.Observable emitted items plus total execution time.
    • Scope.SCHEDULERS: Logs schedulers where the annotated rx.Observable operates on.
    • Scope.EVENTS: Logs rx.Observable events only.
    • Scope.NOTHING: Turns off logging for the annotated rx.Observable.
    @RxLogObservable(Scope.STREAM)
    public Observable<List<MyDummyClass>> list() {
        return Observable.just(buildDummyList());
    }
  • @RxLogSubscriber: Annotated classes which are of type rx.Subscriber will print the following information when receiving items from an rx.Observable:

frodo_subscriber

@RxLogSubscriber
public class MySubscriberBackpressure extends Subscriber<Integer> {

    @Override
    public void onStart() {
        request(40);
    }

    @Override
    public void onNext(Integer value) {
        //empty
    }

    @Override
    public void onError(Throwable throwable) {
        //empty
    }

    @Override
    public void onCompleted() {
        if (!isUnsubscribed()) {
            unsubscribe();
        }
    }
}

Enabling Frodo

To enable Frodo, a gradle plugin must be applied in your build.gradle:

buildscript {
  repositories {
    jcenter()
  }
  dependencies {
    classpath "com.fernandocejas.frodo:frodo-plugin:${latest_version}"
  }
}

apply plugin: 'com.android.application'
apply plugin: 'com.fernandocejas.frodo'

//By default frodo is ON on debug build variants, although
//we can enable-disable it with this configuration.
frodo {
  enabled = true
}

Known issues

1 - Multi module setup (application + android library) will not log annotated methods/classes from Android Library Module but will do it on Android Application Module. The reason behind this, is that the Android Gradle Plugin will build all Android Libraries as release versions, for instance, Frodo is not able to weave any code on the annotated methods/classes (Remember that only weaves in debug versions). There is a workaround for forcing debug versions of your Android Libraries (just be careful in case this is forgotten and you end up shipping a version of your app with RxJava Logging enabled) by adding this line in your build.gradle file:

android {
  defaultPublishConfig "debug"
}

Frodo WIKI

For complete information, features and usage, refer to the WIKI:

License

Copyright 2015 Fernando Cejas

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

http://www.fernandocejas.com

Buy Me A Coffee

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].