Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: Clearscript V8 engine hang while debugging

0
0
Hi Marco,

One possibility might be to use ScriptEngine.ContinuationCallback. Your callback might look something like this:
engine.ContinuationCallback = () => {
    while (ScriptIsPaused()) {
        Thread.Sleep(500);
    }
    returntrue;
};
Note that the engine only invokes the callback approximately once every two seconds, so this technique doesn't give you very precise pause/resume control.

Good luck!

Viewing all articles
Browse latest Browse all 2297