Thank you for information. W dniu niedziela, 17 lipca 2016 09:28:16 UTC+2 użytkownik Ben Noordhuis napisał: > > On Sat, Jul 16, 2016 at 11:52 PM, treck <piot...@gmail.com <javascript:>> > wrote: > > 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? > > Yes, if I understand your question correctly. The disconnect command > disables breakpoints and resumes execution, allowing the termination > exception to kick in. >
-- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.