Debugmotion

Overview

Example

Debugmotion, is a tiny gem to help you debug your app when using your device. It is thought for debugging strange network/gps behaviors. You define data you want to track and users/yourself can see the whole trace, to have more context.

Setup

Loot at the rakefile and the demo app for fast example

  1. gem install debugmotion
  2. require 'debugmotion' (Rakefile)

Usage

In your app_delegate

class AppDelegate

  def application(application, didFinishLaunchingWithOptions:launchOptions)
    @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
    @view_controller = TestViewController.alloc.init
    @view_controller.view.backgroundColor = UIColor.grayColor
    @window.rootViewController = @view_controller
    @window.makeKeyAndVisible

    #must be after @window.makeKeyAndVisible
    Debugmotion.start

    true
  end

end

In your code

#for example to track informations about your connexion
Debugmotion.log("Connexion status : #{connexion_status}")