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:
1. javascript is executing `while(1);` -> stopping works and
Local<Script>::Run() breaks
2. 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?
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.