Hi,

We recently landed a patch to enable devtools against apps running on
devices
[bug 817580]. That patch enables you to connect to your device from a
Firefox desktop,
and have a console, a javascript debugger and a live style editor plugged
to your app.
(And soon a DOM inspector)

Unfortunately, we had to pref this feature off due to security reason. [bug
832000]
We can't enable that, yet, on production devices.
In order to mitigate that, we landed some tweaks in gaia to enable
a "developer mode for devices". This mode should only be set on testing
devices as it toggle unsafe preferences that are meant to ease developers
life.

So, if you checkout today's gecko and gaia master, and if you update gaia
with
the following command:

  $ DEVICE_DEBUG=1 make reset-gaia

Your phone will be set in this developer mode.
Then, you will have to install the following addon in Firefox Desktop.
This addon is a prototype, we are currently working on providing the same
features
builtin into Firefox.

The addon:
  https://bugzilla.mozilla.org/attachment.cgi?id=770957

Once this addon is installed, open the following URL:
  chrome://browser/content/devtools/connect.xhtml
And follow instructions displayed on this page. The only mandatory action
item,
thanks to the developer mode, is to run `adb forward tcp:6000 tcp:6000` each
time you plug/reboot your device.

This is only the first step, we have multiple iterations already planed.
The two big ones are: providing the DOM inspector and shipping an app and
device
manager builtin into firefox. We also hope to simplify the adb story by
reimplementing the core feature we need from adb in javascript.
(that would prevent requiring to install the android SDK and its
dependencies!)

Happy debugging!
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to