v8/test/inspector/debugger/schedule-step-into-async-set-timeout-expected.txt
Alexey Kozyatinskiy 079c0fd8f6 [inspector] added new way to step into async task
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}
2017-11-06 06:40:14 +00:00

47 lines
804 B
Plaintext

Checks Debugger.scheduleStepIntoAsync with setTimeout.
Running test: testSetTimeout
paused at:
debugger; #setTimeout(() => 1, 0);
paused at:
debugger; setTimeout(#() => 1, 0);
Running test: testDebuggerStmtBeforeCallback1
paused at:
debugger; #setTimeout(() => 1, 0);debugger;
paused at:
debugger; setTimeout(() => 1, 0);#debugger;
paused at:
#debugger//should-break-here
Running test: testDebuggerStmtBeforeCallback2
paused at:
setTimeout('debugger//should-break-here', 0);
#setTimeout(() => 1, 0);
paused at:
#debugger//should-break-here
Running test: testSetTimeoutWithoutJS
paused at:
debugger; #setTimeout('}', 0);
setTimeout('var a = 239;', 0);
paused at:
#debugger//should-break-here
Running test: testResume
paused at:
#setTimeout(() => 42, 0)
paused at:
setTimeout(#() => 42, 0)