Subj : Got it working! :-) Rhino debugger now works under servlet To : netscape.public.mozilla.jseng From : Jon Brisbin Date : Thu Sep 01 2005 05:59 pm As for where I got the bizarre notion to use the shell, well, I just copied from the debugger source code... I had to actually specify the whole string for the sorce code *and* the path to the temp file to get the source code to show up in the debugger. When I specified just the source from the string object, it evaluated correctly, but without updating the source code window, so I couldn't see what I was debugging. I'm not sure if this is a bug or a feature :-) Jon Brisbin NPC International, Inc. igor.bukanov@gmail.com wrote: >Jon Brisbin wrote: >... > > >> org.mozilla.javascript.tools.shell.Main.exec( >>new String[] { "-e", >> scriptStr } ); >> >> >... > >This is the problem: you use Rhino shell from your application to >execute your scripts. Puting aside the question of why do you need this >since calling Context.evalString is so much simpler then using >non-public API which are subject to change without notice, the solution >is to replace ctxFac.call by >org.mozilla.javascript.tools.shell.Main.shellContextFactory.call. > >Regards, Igor > >_______________________________________________ >mozilla-jseng mailing list >mozilla-jseng@mozilla.org >http://mail.mozilla.org/listinfo/mozilla-jseng > > > .