BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News WebIDE: A Web IDE in Firefox

WebIDE: A Web IDE in Firefox

Leia em Português

This item in japanese

Lire ce contenu en français

Bookmarks

Mozilla has released in the nightly builds an IDE for creating, editing, running and debugging web applications on Firefox OS devices and simulators, planning to extend it to all major browsers on mobile devices.

WebIDE is built on the former Firefox OS App Manager but includes along with deploying and debugging tools a code editor based on CodeMirror and the tern.js code analysis framework. To ease development start up, developers are provided with boilerplate code based on a growing number of templates. Applications can be deployed on a real Firefox OS device across USB or WiFi, or on a simulator, currently being supported 1.3, 1.4 and 2.0 (beta).

WebIDE is integrated with all the usual Firefox debugging tools enabling live editing of apps. The following snippet shows editing the footer of the Homescreen application, making its min height larger, the change appearing on the simulator immediately:

image

Besides managing runtimes, WebIDE validates applications and their manifest files. For those interested in using their preferred code editor, an API is available to connect from an external editor to WebIDE in order to access runtimes and application validation, as explained in a Mozilla post:

You can use a simple API which allows external editors to access all the advanced functionality of the tool – its runtime management, pushing applications to different devices and connecting Firefox Developer Tools. You can turn off our internal editor and leave WebIDE with a simple, clean interface for managing runtimes and validating applications. We want to make it easy for users of any code editor to sling their code around to various devices.

WebIDE does debugging over the Firefox Remote Debugging Protocol, and Mozilla plans to extend this protocol to work with other mobile browsers – Chrome for Android, Safari for iOS, and possibly others later – through a number of adapters.

Among others, Mozilla is working on adding a Firewatch-like performance monitor for tracking memory consumption, more simulators and PhoneGap support.

Currently WebIDE is available in Firefox Nightly and it has to be enabled turning the devtools.webide.enabled preference in about:config.

Rate this Article

Adoption
Style

BT