Re: Howto suspend JSD when hitting a breakpoint

"timeless" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.jsdebugger
Organization http://groups.google.com
Message-ID <[email protected]>
On Dec 6, 2:11 pm, "joheks" <[email protected]> wrote:
> Hi im working with spidermonkey and JSD.
> I have managed to set a breakpoint and get the callback that a
> breakpoint was hit. But i can´t understand how you could suspend the
> engine while waiting for user input. Do you have to launch the
> spidermonkey (and JSD) in a seperate thread and when you signal back to
> the user in the callback method you actually wait for user input.

venkman definitely doesn't use threads (in fact it's patently thread
unsafe - using venkman w/ threads will get your app killed faster than
you can make a peep).

you can still look at it for an example of something that /mostly/
works (in fact the only reason venkman doesn't work is that most of its
callbacks are DOM objects, and dom objects aren't threadsafe, but
fixing that requires rewriting very large portions of venkman :()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.