Subj : RE: Use org.mozilla.javascript.tools.debugger in application which is embedding Rhino? To : netscape.public.mozilla.jseng From : Merten Schumann Date : Tue May 25 2004 12:19 pm Hah, Igor, thanx, it works! :-) I do start the debugger in a Runable and it appears. It shows my first script and another window appears with the console when the first script is done. But then it seems my application will not continue to work. I was able to break when my first script was to be executed, but then my application sits there and no further things seem to happen ... What the program does is to execute a test frame using Junit. Maybe some threading issues with JUnit or so. Ok, I think I have to investigate things here, maybe I can find out via my Java Debugger where my application sits around ... Thanx! Merten > -----Original Message----- > From: mozilla-jseng-admin@mozilla.org > [mailto:mozilla-jseng-admin@mozilla.org] On Behalf Of Igor Bukanov > Sent: Tuesday, May 25, 2004 9:36 AM > To: mozilla-jseng@mozilla.org > Subject: Re: Use org.mozilla.javascript.tools.debugger in > application which is embedding Rhino? > > Merten Schumann wrote: > > Hello, > > > > found some way old discussions about this topic. It seems, > the Debugger from > > org.mozilla.javascript.tools.debugger > > cannot really be used in an application which uses embedded > Rhino, right? I > > mean, I have to load scripts on my own from a database, > then I do use > > Context.evaluateString() to execute the script. Is it > possible to let the > > Rhino Debugger debug this script? I think for that I would > have to write my > > own debugger using the Debugger API, have I? > > > > No. As the simplest solution you can call > org.mozilla.javascript.tools.debugger.Main.main(new String[0]); > before compilation/evaluating of any script in your application. > > Regards, Igor .