v8/test/inspector/debugger/wasm-set-breakpoint-expected.txt
Z Nguyen-Huu b50dea24b1 [wasm] Report module name if available
Currently, when debugging wasm, the internal script URL is shown, which
has the form wasm://wasm/wasm-<hex-script-id>. With this change, if the
module specifies a module name, it would report the URL as
wasm://wasm/<module-name>-<hex-script-id>, as this will help the user
identify what they are debugging.

Bug: chromium:1017678
Change-Id: I26ff6249bd1e832d62402619a68b61c115c24640
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1888810
Commit-Queue: Z Nguyen-Huu <duongn@microsoft.com>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#64703}
2019-10-31 20:32:31 +00:00

59 lines
1.4 KiB
Plaintext

Tests stepping through wasm scripts.
Instantiating.
Waiting for two wasm scripts (ignoring first non-wasm script).
Source of script wasm://wasm/18214bfe/18214bfe-0:
1: func $wasm_A
2: nop
3: nop
4: end
Source of script wasm://wasm/18214bfe/18214bfe-1:
1: func $wasm_B (param i32)
2: loop
3: local.get 0
4: if
5: local.get 0
6: i32.const 1
7: i32.sub
8: local.set 0
9: call 0
10: br 1
11: end
12: end
13: end
Setting breakpoint on line 8 on script wasm://wasm/18214bfe/18214bfe-1
Setting breakpoint on line 7 on script wasm://wasm/18214bfe/18214bfe-1
Setting breakpoint on line 6 on script wasm://wasm/18214bfe/18214bfe-1
Setting breakpoint on line 5 on script wasm://wasm/18214bfe/18214bfe-1
Setting breakpoint on line 3 on script wasm://wasm/18214bfe/18214bfe-1
Setting breakpoint on line 4 on script wasm://wasm/18214bfe/18214bfe-1
Calling main(4)
Breaking on line 3
Breaking on line 4
Breaking on line 5
Breaking on line 6
Breaking on line 7
Breaking on line 8
Breaking on line 3
Breaking on line 4
Breaking on line 5
Breaking on line 6
Breaking on line 7
Breaking on line 8
Breaking on line 3
Breaking on line 4
Breaking on line 5
Breaking on line 6
Breaking on line 7
Breaking on line 8
Breaking on line 3
Breaking on line 4
Breaking on line 5
Breaking on line 6
Breaking on line 7
Breaking on line 8
Breaking on line 3
exports.main returned!
Finished!