Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Debugging the app

For debugging an app the first step is, of course, to use a full-capabilities desktop browser such as Firefox with all its available tools. But once the app is installed on a platform (cf. Platform-specific details of app installation) it becomes a native app, it is run from inside the webapp runtime and things get more complicated.

To debug problems when an app is running inside the webapp runtime one can run it from the command line by enabling the old (but still useful) Error Console.

For example if an App comes from https://areatweet.com/ and is installed in $HOME/.http\;areatweet.com/ (this is the case for a Linux Desktop cf. Platform-specific details of app installation) the webapp runtime will be found in this directory. One should then run the webapp runtime with the debugging option as follows:

$ ~/.http\;areatweet.com/webapprt-stub -jsconsole

Note that on Windows the webapp runtime is not named webapprt-stub but is named after the name of the App, but the principle remains the same.

Read Hacking Firefox OS for more information on debugging.

See also

Document Tags and Contributors

Tags: 
 Contributors to this page: rsage, kohei.yoshino, Sheppy, madarche
 Last updated by: rsage,