079c0fd8f6
It is preparation step for step-into-worker. There are few changes: - added breakOnAsyncCall flag for Debugger.stepInto. When flag is set and async task is scheduled before step-into finished, we pause execution with additional Debugger.paused event. This event contains additional scheduledAsyncTaskId field. - added Debugger.pauseOnAsyncTask. This method will pause execution as soon as given async task is started. This mechanism is replacement for Debugger.scheduleStepIntoAsync which can not be used between multiple targets. As result we can split async task scheduling in one target and requesting break for this async task running in another target. R=pfeldman@chromium.org Bug: chromium:778796 Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel Change-Id: I77be0c880d91253d333c54a23a4c084e7b8549e9 Reviewed-on: https://chromium-review.googlesource.com/750071 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Reviewed-by: Pavel Feldman <pfeldman@chromium.org> Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Cr-Commit-Position: refs/heads/master@{#49127}
14 lines
326 B
Plaintext
14 lines
326 B
Plaintext
Test for Debugger.stepInto with breakOnAsyncCall.
|
|
|
|
Running test: testSetTimeout
|
|
(anonymous) (test.js:0:0)
|
|
scheduledAsyncTaskId is set
|
|
setTimeout (test.js:0:11)
|
|
scheduledAsyncTaskId is empty
|
|
|
|
Running test: testPromiseThen
|
|
(anonymous) (test.js:0:2)
|
|
scheduledAsyncTaskId is set
|
|
p.then (test.js:0:7)
|
|
scheduledAsyncTaskId is empty
|