Skip to content
Joseph Emmanuel Dayo edited this page Dec 20, 2013 · 6 revisions

The droiuby console allows for dynamic introspection of your app

Starting the console

When the Droiuby app starts it opens port 4000 on your phone. You can access the droiuby console from any web browser using http://your_phone's_IP:4000.

you can also access it from the commandline if you have the droiuby gem installed

$ drby console -d <Your phone's IP>

If you have your phone connected via USB and have adb installed, you may omit the -d parameter.

$ drby console

Commands

The console itself is like IRB like so it should be straightforward. To test if the console works you can try

> V().p_tree

This prints the "DOM" structure of your app if successful

To "reload" the app, you an issue the refresh! or reload! command:

> refresh!

Or

> reload!

To exit, simply type:

> exit