I have question about v8::V8::TerminateExecution function.
I set up debugger by using v8::Debug::SetMessageHandler. While javascript code is running, I need possibility to stop execution.
I have two cases:
- javascript is executing `while(1);` -> stopping works and Local<Script>::Run() breaks
- javascript paused due to breakpoint -> stopping doesn't work and Local<Script>::Run() doesn't break (TerminateExecution doesn't seem to work)
I've noticed that sending debugger command 'disconnect' (i.e. "{\"seq\":%1,"
"\"type\":\"request\","
"\"command\":\"disconnect\""
"}") before TerminateExecution(isolate) makes that 2nd case works OK (1st is OK too).
Is this approach enough to stop javascript execution while using v8 debugger?