*Rhino JavaScript Debugger*

Mozilla has a JavaScript debugger , which allows debugging of interpreted
JavaScript scripts run in Rhino [1]. This debugger allows loading of .jag
files without any issue if it only contains pure JavaScript.

*Eclipse plug-in for Remote JavaScript Debugging*

The plugin uses 3 jars

   1. org.eclipse.wst.jsdt.debug.transport
   2. org.eclipse.wst.jsdt.debug.rhino.debugger
   3. org.mozilla.javascript

to run a debugging server which starts the Rhino console. The console can
be started either using Eclipse IDE or a system terminal. Eclipse IDE can
be attached to the remote debugger as the client. Once the client is
connected scripts can be loaded using the console and debugging process
will be shown via the Eclipse IDE similar to any Java debugging process.
[2], [3]
.jag files containing pure JavaScript can be created and opened in the
Eclipse IDE using the JavaScript editor. Breakpoints also can be set via
Eclipse. The .jag files can be loaded into the remote debugger in the same
manner in which .js files are loaded. So .jag files containing pure
JavaScript can be remotely debugged using this Eclipse plug-in.

*Future Steps*

Make use of the existing plug-in for Remote JavaScript Debugging and enable
Jaggery features to be debugged through it.

The scope used in Jaggery which contains hostobjects might be passed to
Eclipse context and set as the active scope to be used in debugging.



[1] http://www.mozilla.org/rhino/debugger.html
[2] http://wiki.eclipse.org/JSDT/Debug/Rhino/Using_Rhino_Console
[3] http://wiki.eclipse.org/JSDT/Debug/Rhino/Embedding_Rhino_Debugger
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to