Pause command should worker for dedicated workers in JSC.
So far, the Pause commands are same for shared and dedicated worker of JSC, it just set a flag to let JSC engine to stop on next statement. Are there some special cases have to be considered? Please give some tips, thank you very much.
(In reply to comment #1) > So far, the Pause commands are same for shared and dedicated worker of JSC, it just set a flag to let JSC engine to stop on next statement. > > Are there some special cases have to be considered? Please give some tips, thank you very much. The pause command should work even if the worker is in a tight loop so that we can pause long-running scripts. Apart from that there is nothing special about the pause for workers. There is a sanity test for pause in dedicated worker that didn't work in JSC last time I checked that(LayoutTests/inspector-protocol/debugger-pause-dedicated-worker.html). This may have changed after your recent changes to WorkerScriptDebugServer.
(In reply to comment #2) > (In reply to comment #1) > > So far, the Pause commands are same for shared and dedicated worker of JSC, it just set a flag to let JSC engine to stop on next statement. > > > > Are there some special cases have to be considered? Please give some tips, thank you very much. > > The pause command should work even if the worker is in a tight loop so that we can pause long-running scripts. Apart from that there is nothing special about the pause for workers. > > There is a sanity test for pause in dedicated worker that didn't work in JSC last time I checked that(LayoutTests/inspector-protocol/debugger-pause-dedicated-worker.html). This may have changed after your recent changes to WorkerScriptDebugServer. Ok, I'll check it and report the newest situation here. Thank you.
(In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > > So far, the Pause commands are same for shared and dedicated worker of JSC, it just set a flag to let JSC engine to stop on next statement. > > > > > > Are there some special cases have to be considered? Please give some tips, thank you very much. > > > > The pause command should work even if the worker is in a tight loop so that we can pause long-running scripts. Apart from that there is nothing special about the pause for workers. > > > > There is a sanity test for pause in dedicated worker that didn't work in JSC last time I checked that(LayoutTests/inspector-protocol/debugger-pause-dedicated-worker.html). This may have changed after your recent changes to WorkerScriptDebugServer. > > Ok, I'll check it and report the newest situation here. Thank you. My local Qt build (r135111) can pass this case.
This test appears to be working. Please reopen if you find that there is still an issue with this test.
The test is skipped on Mac, which is why the flakiness dashboard doesn't see it fail.
<rdar://problem/19049362>
*** This bug has been marked as a duplicate of bug 164136 ***