On Fri, Dec 7, 2012 at 7:47 AM, Tianbing Brian Teng <
[email protected]> wrote:

> On Friday, November 30, 2012 3:25:00 PM UTC-8, Eric Shepherd wrote:
> > I'm working away at debugging related docs pertaining to Firefox OS.
> Lots of changes here:
> >
> >
> https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko
> >
> > We also now have:
> >
> >
> https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko/Setting_up
> >
> > https://developer.mozilla.org/en-US/docs/Tools/Debugger
> >
> > And next week, I'll be working further on:
> >
> >
> https://developer.mozilla.org/en-US/docs/Mozilla/Boot_to_Gecko/Debugging_on_Boot_to_Gecko/Using_the_Remote_Web_Console
> >
> > Please feel free to tweak these if you see any problems, or offer
> suggestions that will help me make them better.
> >
> > Eric Shepherd
> > Developer Documentation Lead
> > Mozilla
> > http://www.bitstampede.com/
>
> Hi Eric.
> 1)
> On Developer.mozilla, it didn't mention going to about:config to enable
> remote debug option. It is mentioned at hacks.mozilla site:
> https://hacks.mozilla.org/2012/08/remote-debugging-on-firefox-for-android/
>

It is also mentioned in the second link above, about setting up debugging.


> 2)
> On prefs.js, I read a blog(
> http://blog.astithas.com/2012_10_01_archive.html) that mentioned below
> two lines of code which is different from the developer.mozilla. Can you
> confirm which is correct?
> user_pref("devtools.debugger.remote-enabled", true);
> user_pref("marionette.defaultPrefs.enabled", false);
>

The setting up MDN link covers this. Since I wrote that blog post a setting
was added to the Firefox OS settings app, so now you can use that to change
the value of the remote-enabled pref.

3)it seems prefs.js gets replaced when the phone is restarted, can you
> confirm?
>

That's true, we need to update the doc to note that you should place your
pref overrides to /system/b2g/defaults/pref/user.js which is not changed by
the b2g app.

After following all the steps, I am still getting "server not found".
> I am using USB cable, host is set to localhost:6000. I am using 12/6/2012
> build. My phone is Google Galaxy Nexus.
>

If you have forwarded port 6000 with adb and 'telnet localhost 6000' works,
then it's a regression that is tracked in bug 818884. You can try using the
previous build until that's fixed.

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

Reply via email to