Le 02/01/2013 17:15, Marc-Aurèle DARCHE a écrit :
> Hello,
> 
> Short:
> I have problems debugging a web page transformed into an Open Web App.
> Please tell what techniques/tools to use.
> 
> 
> Long:
> 
> The web page I'm trying to transform into an Open Web App is
> https://developer.mozilla.org/en-US/docs/IndexedDB/Using_IndexedDB#Full_IndexedDB_example
> (note that this web page in link is *not* the open-web-app-ed version,
> it's just the original version written for MDN).
> 
> So I have added the manifest and the JavaScript install code and the web
> page now Open Web App installs itself well as a WebRT. The WebRT starts
> fine when started from the desktop. But at that point I can only do some
> "alert()" calls to debug what's going wrong. No access to a console
> showing errors, no Shift-F2, no F12 would trigger the display of any
> developer tool :'(
> 
> So how could a developer debug, see errors, append to a logger? A nice
> thing would be able to start a webapp from the command line with debug
> in the console, something like "firefox -webapp [webapp-id]" (found on
> https://wiki.mozilla.org/Prism)
> 

I've found the solution: On Linux one just needs to find the
“webapprt-stub” executable and start it with the "-jsconsole" option. On
Windows it seems to be an .exe having the name of the web app.

I have very rapidly created the following article
https://developer.mozilla.org/en-US/docs/Apps/Tutorials/Debugging_the_app to
have the answer referenced on MDN. I'll elaborate more ASAP.

Cheers,

-- 
Marc-Aurèle DARCHE      https://developer.mozilla.org/profiles/madarche
AFUL                    http://aful.org/
Association Francophone des Utilisateurs de Logiciels Libres
French speaking Libre Software Users' Association
_______________________________________________
dev-webapps mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-webapps

Reply via email to