Subj : Rhino debugger To : netscape.public.mozilla.jseng From : Jon Brisbin Date : Mon Aug 29 2005 02:20 pm Has anyone used the debugger in an "embedded" mode before? I'm trying to use it in my web application, to pop up and debug server-side JavaScript, but I can only get it to evaluate with the call to exec() on the shell Main class. The debugger doesn't show the source code or my objects and is apparently not communicating with the shared scope I set inside it by calling a hacked version of the "mainEmbedded" method on the debugger's Main class. I understand enough of the Rhino API and debugger and tools codebase now to know that the Swing GUI is not using the context in which I've got all my objects stored, but I don't understand why it would work fine by calling it from the command line, but not when called from a servlet. All I'm doing is pretending as if I was calling it from the command line (I've even tried writing out the JavaScript to a temp file for execution) but I just can't get the debugger to get the right Context. The call to "exec()" on the shell's Main class works fine and the JavaScript gets executed, but the debugger won't work correctly. This has stumped me for about a week and a half. Any help that anyone on this list can give me (even if it only seems tangentially related) would be greatly appreciated. I feel like I'm just spinning my wheels here. If someone has tried to call the debugger from a servlet before (or could try it real quick) and could point me in the right direction as far as what I need to have set, I would really appreciate it. Jon Brisbin NPC International, Inc. .