Subj : Re: Newbie: How to launch/use Rhino debugging from embeded engine? To : Neil Kolban From : Igor Bukanov Date : Mon Oct 06 2003 09:30 am Neil Kolban wrote: > Folks, > Newbie here ... > > My question is about debugging JavaScript in an embedded Rhino engine. > Assuming that my product embeds Rhino and I wish to allow my users to debug > their entered Java Script at run-time, how can I go about launching the > Rhino debugger from within my product? If you want to launch the GUI debugger, then simply calling org.mozilla.javascript.tools.debugger.Main.main(new String[0]) outside Context.enter()/Context.exit() pair should be sufficient. If you would call the debugger after you loaded some of your scripts, you need to make sure that you pass correct URL to Context.compile/Context.eval since the debugger will use the URL to access sources for already compiled scripts. Regards, Igor .