Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Debugging JS in Eclipse

184 views
Skip to first unread message

Cameron McCormack

unread,
Nov 18, 2009, 9:56:03 PM11/18/09
to
Hi everyone.

I spend a lot of my time debugging my project, which is written in a
combination of JS (compiled with jsc) and Java. It's great that stack
traces include entries that point to the relevant line of the JS file
from which the compiled bytecode came, but I would like to use an
interactive debugger. Using org.mozilla.javascript.tools.debugger is OK
for pure JS issues, but my code bounces around a lot between JS and Java.

I'd love to be able to use Eclipse and have a unified stack of JS and
Java calls (like you see when you printStackTrace()) and be able to
inspect JS variables/objects when I'm viewing a JS stack frame.

Is this possible currently? If not, any idea how difficult it would be
to achieve? (Not that I really have time to write the appropriate
Eclipse plugin or whatever would be required...)

Thanks,

Cameron

Simon Kaegi

unread,
Nov 19, 2009, 11:54:08 PM11/19/09
to
Hi Cameron

We're actually already providing support in the Eclipse e4 project for
debugging Rhino however I'm fairly embarassed to say it's not documented at
all well at this point in the release.
http://wiki.eclipse.org/E4/JavaScript#JavaScript_Rhino_Debugging_Support

One thing worth adding is that although this work was originally done as
part of e4 it will likely surface in the current Helios / 3.6 release of
Eclipse in the JavaScript tooling.

-Simon

"Cameron McCormack" <c...@mcc.id.au> wrote in message
news:h5udnVEmC9pYLpnW...@mozilla.org...

Cameron McCormack

unread,
Nov 20, 2009, 1:15:23 AM11/20/09
to
Hi Simon.

Simon Kaegi wrote:
> We're actually already providing support in the Eclipse e4 project for
> debugging Rhino however I'm fairly embarassed to say it's not documented at
> all well at this point in the release.
> http://wiki.eclipse.org/E4/JavaScript#JavaScript_Rhino_Debugging_Support
>
> One thing worth adding is that although this work was originally done as
> part of e4 it will likely surface in the current Helios / 3.6 release of
> Eclipse in the JavaScript tooling.

Oh, excellent! I will give it a shot next week.

Thanks,

Cameron

Johan Compagner

unread,
Nov 20, 2009, 10:53:59 AM11/20/09
to dev-tech-js-...@lists.mozilla.org
we use the DLTK project and there javascript modules to debug rhino which
work on eclipse 3.3 and higher i believe.

> _______________________________________________
> dev-tech-js-engine-rhino mailing list
> dev-tech-js-...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
>

0 new messages