For some time now various packages have been available to directly evaluate JS code written in Emacs in Mozilla -- without any reloading.
The newest approach is from Massimiliano Mirra called MozRepl. It promises to break us free from the write/save/restart/test cycle. What it currently does is this: You load/write a piece of Javascript code in Emacs, copy it into a Emacs buffer, send this buffer to the so-called JS shell server on the Mozilla end where the JS code is evaluated in a specific Mozilla window.
Further resources include:
JS Shell Server
Intro to JS Shell Server
Now, what from I can tell this just evaluates a piece of JS in some arbitrary Mozilla window. You cannot edit a specific JS source file in a running XUL application just yet. Now, would not that be cool? We really need a remote debugging protocol for Mozilla which includes manipulating JS objects and thus functions. I'd love to hear your comments on why this has not happened yet.
Posted by Sascha Schumann
at
14:00
| Comments (0)
| Trackbacks (0)