Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

building java script debugger for rhino [closed]

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?

like image 675
special0ne Avatar asked Oct 31 '09 09:10

special0ne


3 Answers

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

like image 92
jitter Avatar answered Oct 22 '22 13:10

jitter


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

like image 3
William Bath Avatar answered Oct 22 '22 13:10

William Bath


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

like image 1
bmargulies Avatar answered Oct 22 '22 14:10

bmargulies