Subj : Re: Rhino debugger To : netscape.public.mozilla.jseng From : igor.bukanov@gmail.com Date : Thu Sep 01 2005 02:41 am 1. Use mainEmbedded form from http://lxr.mozilla.org/mozilla/source/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java#284 with properly initialized ContextFactory and ScopeProvider. 2. In your servlet code do NOT use Context cx = Context.enter(); try { codeThatUseContextInstance } finally { Context.exit(); } Instead use instanceOfContextFactoryToPassToDebugger.call(new ContextAction() { public Object run(Context cx) { codeThatUseContextInstance } }); Regards, Igor .