Adding a bit of information from not-knowing-what-I-am-doing-experimentation...
I've set up an alternate Xnest X server on my Ubuntu platform and have run Mirth Connect on Eclipse invoked on that platform, setting everything up to display on that X server rather than the standard one with Ubuntu. I am now able to create debugger instances, which display their GUI. I've added code like this:
if(rhinoDebugger==null)
rhinoDebugger = org.mozilla.javascript.tools.debugger.Main.mainEmbedded(contextFactory, scope, "MirthDebug");
rhinoDebugger.attachTo(contextFactory);
rhinoDebugger.setBreakOnEnter(true);
System.out.println("Rhino debugger: " + rhinoDebugger);
context.setOptimizationLevel(-1);
Object v = compiledScript.exec(context, scope); <-- this is the Javascript from Mirth
System.out.println("Returned from rhino debugger session?");
Debugger x = context.getDebugger();
System.out.println("Result of getDebugger" + x);
System.out.println("Context: " + context);
Here's what happens. The first time, I get the debugger popping up. The second time, I get a new copy of the debugger and the OLD copy gets access to the script's variables... I can see them in the watch window. However, instead of the script getting displayed, the Rhino debugger somehow pulls in an HTML welcome page from Tomcat, which is running on my system. It jumps from line to line, appearing to follow the line numbers from my script, but not displaying it.
I'm attaching a screen shot.
There is another weirdness as well -- although my Eclipse and Mirth windows appear on the Xnest display, the debugger initiated from inside Mirth shows on my regular display (:0).
Anyone with any theories? Thanks in advance.