Debugger

Introduction

Jaggery debugging feature is enabled by the means of Rhino JavaScript Debugger. Eclipse IDE has plugin
support for Remote Javascript debugging with Rhino. Support is given for both client and server side
thus, we can setup Rhino debugging in our own server and we can connect to a server already running the
Rhino debugger. Jaggery server is embedded with an embedded Rhino Debugger and we can connect to it via
Eclipse IDE. Currently this feature is only compatible with Eclipse Java EE IDE for Web Developers:
Juno Release.

Configuring the debugger

Both the client and server sides need to be configured before you can start the debugger.

Server side

Navigate to plugins directory of your Eclipse installation and locate following jars.

org.eclipse.wst.jsdt.debug.transport-1.0.100.v201109150330.jar

org.eclipse.wst.jsdt.debug.rhino.debugger-1.0.300.v201109150503.jar

Extract
jaggery-0.9.0-SNAPSHOT.zip
to a directory you prefer. Let's call it
JAGGERY_HOME

Go to the Eclipse IDE and launch the newly created debug configuration.

IMPORTANT:As we don't have editor support for Jaggery yet, debugging can be used on scripts which have
only JavaScript content. Also as the JavaScript editor doesn't allow <% and %> characters
they need to be commented out. We are working on improving the debugger.