d8e8dab0e7
This CL makes sure to forward the information that we are pausing because of a debugger statement, and to encode it explicitly as an 'other' reason when reporting the pause to the front-end. Drive-by: refactoring the way break reasons are propagated by introducing a new enum for break reasons Bug: chromium:1229541, chromium:1133307 Change-Id: I9d2e8d8da54d96a231eff9d1f62b74507955b18f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3306978 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Kim-Anh Tran <kimanh@chromium.org> Cr-Commit-Position: refs/heads/main@{#78202}
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
Test that all 'other' reasons are explicitly encoded on a pause event if they overlap with another reason
|
|
|
|
Running test: testBreakpointPauseReason
|
|
Paused with reason: instrumentation and data: {"url":"foo.js","scriptId":"3"}.
|
|
Paused with reason: other and data: {}.
|
|
|
|
Running test: testTriggeredPausePauseReason
|
|
Paused with reason: ambiguous and data: {"reasons":[{"reason":"instrumentation","auxData":{"url":"foo.js","scriptId":"4"}},{"reason":"other"}]}.
|
|
|
|
Running test: testSteppingPauseReason
|
|
Paused with reason: instrumentation and data: {"url":"foo.js","scriptId":"5"}.
|
|
Paused with reason: other and data: {}.
|
|
Paused with reason: other and data: {}.
|
|
Paused with reason: ambiguous and data: {"reasons":[{"reason":"instrumentation","auxData":{"url":"bar.js","scriptId":"6"}},{"reason":"other"}]}.
|
|
|
|
Running test: testOnlyReportOtherWithEmptyDataOnce
|
|
Paused with reason: other and data: {}.
|
|
|
|
Running test: testDebuggerStatementReason
|
|
Paused with reason: ambiguous and data: {"reasons":[{"reason":"instrumentation","auxData":{"url":"foo.js","scriptId":"8"}},{"reason":"other"}]}.
|