a81e8d16f4
Previously the `Debugger.CallFrame`s in `Debugger.paused` events would report locations relative to the surrounding document in case of inline scripts with `//@ sourceURL` annotations (while `Runtime.CallFrame` was already fixed previously as part of crrev.com/c/3069289). With this CL the locations in `Debugger.CallFrame` are also appropriately adjusted. Drive-by-fix: Several inspector tests were (incorrectly) relying on this wrong treatment, and were also unnecessarily using //# sourceURL annotations. So part of this CL also addresses that problem and makes the tests more robust, using addInlineScript() helper. Fixed: chromium:1283049 Bug: chromium:1183990, chromium:578269 Change-Id: I6e3b215d951c3453c0a9cfc9bccf3dc3d5e92fd6 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3359619 Auto-Submit: Benedikt Meurer <bmeurer@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Yang Guo <yangguo@chromium.org> Cr-Commit-Position: refs/heads/main@{#78450}
232 lines
4.3 KiB
Plaintext
232 lines
4.3 KiB
Plaintext
Tests how multiple sessions interact while pausing, stepping, setting breakpoints and blackboxing.
|
|
Connecting session 1
|
|
Pausing in 1
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: null
|
|
Connecting session 2
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: null
|
|
Resuming in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Setting breakpoints in 1
|
|
Setting breakpoints in 2
|
|
Evaluating common breakpoint in 1
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints: 1:11:0:test.js
|
|
location: foo@11
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints: 1:11:0:test.js
|
|
location: foo@11
|
|
data: null
|
|
Resuming in 1
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Evaluating debugger in 1
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: bar@26
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: bar@26
|
|
data: null
|
|
Resuming in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Evaluating exclusive breakpoint in 1
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints: 1:14:0:test.js
|
|
location: baz@14
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: baz@14
|
|
data: null
|
|
Resuming in 1
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Evaluating common breakpoint in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints: 1:11:0:test.js
|
|
location: foo@11
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints: 1:11:0:test.js
|
|
location: foo@11
|
|
data: null
|
|
Resuming in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Evaluating debugger in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: bar@26
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: bar@26
|
|
data: null
|
|
Resuming in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Evaluating exclusive breakpoint in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints: 1:14:0:test.js
|
|
location: baz@14
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: baz@14
|
|
data: null
|
|
Resuming in 1
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Evaluating stepping in 1
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: stepping@17
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: stepping@17
|
|
data: null
|
|
Stepping into in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: stepping@18
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: stepping@18
|
|
data: null
|
|
Stepping over in 1
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: stepping@19
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: stepping@19
|
|
data: null
|
|
Stepping out in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: null
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: null
|
|
Resuming in 1
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Pausing in next statement
|
|
Paused in 1:
|
|
reason: some-reason
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: {"a":42}
|
|
Paused in 2:
|
|
reason: some-reason
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: {"a":42}
|
|
Resuming in 1
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Pausing in next statement
|
|
Paused in 1:
|
|
reason: some-reason
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: {"a":42}
|
|
Paused in 2:
|
|
reason: some-reason
|
|
hit breakpoints:
|
|
location: <anonymous>@0
|
|
data: {"a":42}
|
|
Resuming in 2
|
|
Resumed in 1
|
|
Resumed in 2
|
|
Blackboxing bar() in 2
|
|
Evaluating bar() in 2
|
|
Paused in 1:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: bar@26
|
|
data: null
|
|
Resuming in 1
|
|
Resumed in 1
|
|
Blackboxing bar() in 1
|
|
Evaluating bar() in 2
|
|
Skipping pauses in 1
|
|
Evaluating common breakpoint in 1
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints: 1:11:0:test.js
|
|
location: foo@11
|
|
data: null
|
|
Resuming in 2
|
|
Resumed in 2
|
|
Skipping pauses in 2
|
|
Evaluating common breakpoint in 1
|
|
Unskipping pauses in 1
|
|
Unskipping pauses in 2
|
|
Deactivating breakpoints in 1
|
|
Evaluating common breakpoint in 1
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints: 1:11:0:test.js
|
|
location: foo@11
|
|
data: null
|
|
Resuming in 2
|
|
Resumed in 2
|
|
Deactivating breakpoints in 2
|
|
Evaluating common breakpoint in 1
|
|
Activating breakpoints in 1
|
|
Activating breakpoints in 2
|
|
Disabling debugger agent in 1
|
|
Evaluating breakpoint in 1 (should not be triggered)
|
|
Paused in 2:
|
|
reason: other
|
|
hit breakpoints:
|
|
location: <anonymous>@1
|
|
data: null
|
|
Activating debugger agent in 1
|
|
Disabling debugger agent in 2
|
|
Disabling debugger agent in 1
|