Well, what I do is, I have a separate UI thread and a separate thread that runs the debugged script. DebugFrame will run on the debugged script thread; it'll notify() the UI thread that the execution suspended, then wait() for UI action. When there's an action, UI thread will set it in a shared variable, and notigy() the debugged script thread, which can then proceed based on the action.
Attila. On 2009.12.16., at 16:14, Jaimon wrote: > hi, > > i am working with rhino and now i am adding the debug to my > implementation. > > my question: > once i got to one of the DebugFrame methods i need to update the UI > and wait for the user to tell me how to proceed (resume, terminate) is > it possible to stop/terminate the script evaluation so i will be able > to update the UI? i would rather not use the observeInstructionCount. > is there any better way to stop or suspend the script evaluation? > > thanks > me _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
