B2G

From TAMI
Revision as of 02:38, 26 August 2014 by AlonLevy (talk | contribs) (Created page with "This page is about Firefox OS, nick named Boot to Gecko, or [https://developer.mozilla.org/en-US/Firefox_OS B2G] for short. = Hebrew = export GAIA_KEYBOARD_LAYOUTS=en,he ./...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This page is about Firefox OS, nick named Boot to Gecko, or B2G for short.

Hebrew

export GAIA_KEYBOARD_LAYOUTS=en,he
./build.sh

Javascript console

A cool thing I did today though was get a javascript console working directly on my phone. According to here https://developer.mozilla.org/en-US/Firefox_OS/Debugging/Debugging_and_security_testing The steps I did:

avnerus@localhost ~/Flame $ virtualenv venv avnerus@localhost ~/Flame $ source venv/bin/activate (venv)avnerus@localhost ~/Flame $ pip install marionette_client (venv)avnerus@localhost ~/Flame $ adb forward tcp:2828 tcp:2828 (venv)avnerus@localhost ~/Flame $ python fxos-repl.py list

then I could see a list of my applications. I did: (venv)avnerus@localhost ~/Flame $ python fxos-repl.py connect app://browser.gaiamobile.org/index.html

I tried > alert('hi');

and it displayed it on my phone :D

I also did

> console.log('Avner')

and I could see it in "adb logcat" (When console logging is enabled on the phone's developer menu).


cool stuff!