Hi, I need to embed Rhino in an application which requires it to execute in debug mode, most specifically to be able to control breakpoints.
I didn't see any documentation on how to implement a debugger, so I have been hacking through the debugger provided. I'll make it eventually, but perhaps someone can provide me with a high level overview of how to implement the debugging functions of Rhino in my own app. For example if someone could provide a high level outline of the architecture I'd be very appreciative, e.g.: 1. How best to interact with the ContextFactory (the debugger extends this class, do I need to do that? Why does it do that?) 2. What interfaces do I need to implement? (the debugger GUI seems to get feedback from the Rhino runtime engine when debugging is enabled, a brief overview of this interaction would help a lot) 3. What are the basic high level interactions that occur between the debugger and the runtime engine? (The IProxy component of the debugger seems to orchestrate things, but it's a bit tricky to follow the undocumented code). 4. What are the basic abc's of initializing and executing a script that will break at step one (just super high level pseudo-code is all I'm hoping for). Well, I'm sure I can figure this out with enough time, but if someone would be kind enough just to hit some basic bullet points to let me know I'm moving in the right direction as I pick all of this apart it will just save me a lot of time and effort (and probably help me get it right closer to the first go-around). Thanks much! David _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
