El 20/07/12 21:46, "Donovan Preston" <[email protected]> escribió:
>On Fri Jul 20 15:05:06 2012, Donovan Preston wrote: >> On Fri Jul 20 14:58:43 2012, Philipp von Weitershausen wrote: >>> On Fri, Jul 20, 2012 at 11:34 AM, Donovan Preston >>> <[email protected]> wrote: >>>> However there seems to be a bug where none of the file source will >>>> load, >>> >>> Yeah I looked into that. The debugger on the desktop just loads the >>> files off the same URI, which of course fails for app-cached web apps >>> and B2G-only chrome stuff. I was working on a patch to optionally >>> transmit files over the debugger protocol, but I got sidetracked. That >>> dratted M4 deadline. ;) >> >> Hmm. I think this means that building the gaia profile with DEBUG=1 >> and changing the hosts file on the local machine to point >> *.gaiamobile.org to localhost will make the debugger work. >> >> I'm going to try this and see if I can get it working. > >Yes. I got the debugger to work. > >To recap, edit /etc/hosts and add entries for all the apps to it >pointing at localhost: > > 127.0.0.1 homescreen.gaiamobile.org > 127.0.0.1 myapp.gaiamobile.org > ...etc... > >create custom-prefs.js in gaia with: > > user_pref("marionette.defaultPrefs.enabled", false); > user_pref("devtools.debugger.remote-enabled", true); > user_pref("devtools.debugger.force-local", false); > user_pref("devtools.debugger.remote-port", 60000); > >Build the gaia profile with DEBUG=1 > > DEBUG=1 make > >Run b2g desktop, and connect to it on port 60000 with the Remote >Debugger in Nightly (after turning it on in about:config). You should >load the app you want to debug before connecting the debugger otherwise >the source file won't show up in the list. I followed these instructions but I can only debug the System app .js files. I have loaded the app I wnat to load beforehand and then connect the remote debugger but no success. Any ideas / updates on this issue? thanks > >You can haz debugger! > >_______________________________________________ >dev-b2g mailing list >[email protected] >https://lists.mozilla.org/listinfo/dev-b2g > ________________________________ Este mensaje se dirige exclusivamente a su destinatario. Puede consultar nuestra política de envío y recepción de correo electrónico en el enlace situado más abajo. This message is intended exclusively for its addressee. We only send and receive email on the basis of the terms set out at: http://www.tid.es/ES/PAGINAS/disclaimer.aspx _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
