building java script debugger for rhino [closed]
Asked Answered
M

3

9

i am using tomcat server and i have added a rhino engine to able some scripting abilities on my users. the second phase is to provide some debug environment.

i know rhino has a debug API but i could not find any documentation/code samples about how to work with it, and build a debugger around it

any one knows?

Morrissey answered 31/10, 2009 at 9:11 Comment(0)
B
18

Check this thread

Getting Rhino debugger working in servlets which uses Rhino debugger.

And be sure to read the whole thread

Rhino debugger against embedded engine

Some guy from the above thread managed (based on the first link I provided) to attach a debugger to a embedded rhino instance

Some other guy even made a little project on sourcefore (didn't test it)

debug rhino you only need the debug and the debug-rhino folders as the rest is some other stuff

Blastoderm answered 31/10, 2009 at 11:31 Comment(5)
thanks :-), lately i have been thinking maybe i am searching information on the web in a wrong way, so forgive my silly question but how did you got to all these links?? thanks:-)Morrissey
I used google. started out with "rhino tomcat debug" which yields the first link on position 4 for me. Then "rhino debugger" yields the second link on page 2 position 3b. And also reyields link 1 on page 2 position 1.Blastoderm
@Blastoderm first link is broken. Is this the thread though?: mozilla.6506.n7.nabble.com/…Bungalow
@Blastoderm where exactly is the download for this "Rhino JavaScript debugger is a GUI" thing?: developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/…Bungalow
@Bungalow developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino/…Blastoderm
T
3

I recommend leveraging the one provided as part of JSDT, I've got embedded in a servlet environment and it took ~1 day to get going (working out how to make the rhino server match the source with the source in the eclipse workspace so they would debug properly). http://wiki.eclipse.org/JSDT/Debug/Rhino/Embedding_Rhino_Debugger

Tiffin answered 19/8, 2012 at 10:12 Comment(0)
W
1

I wrote code in Apache CXF to launch the Rhino debugger programatically. You might find it a useful example.

Weave answered 27/11, 2009 at 23:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.