v8/test/inspector/debugger/wasm-stepping-to-js-expected.txt
Kim-Anh Tran f21291bc41 [wasm][debug] Clean up inspector tests
Extract commonly used instantiate() and evalWithUrl() functions.

Bug: chromium:1093165
Change-Id: I14f8b49d556bc70d2092a80b41c5bbf678efd1a9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2245599
Commit-Queue: Kim-Anh Tran <kimanh@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68356}
2020-06-16 08:35:09 +00:00

63 lines
1.2 KiB
Plaintext

Tests stepping to javascript from wasm
Calling instantiate function.
Waiting for wasm scripts to be parsed.
Ignoring script with url v8://test/instantiate
Got wasm script: wasm://wasm/242f4a16
Setting breakpoint at start of wasm function
{
columnNumber : 33
lineNumber : 0
scriptId : <scriptId>
}
Start run 1
paused
function test() {
#debugger;
instance.exports.main();
Debugger.resume
paused
Script wasm://wasm/242f4a16 byte offset 33: Wasm opcode 0x01
Debugger.stepOut
paused
instance.exports.main();
var x = #1;
x++;
Debugger.resume
exports.main returned!
Finished run 1!
Start run 2
paused
function test() {
#debugger;
instance.exports.main();
Debugger.resume
paused
Script wasm://wasm/242f4a16 byte offset 33: Wasm opcode 0x01
Debugger.stepOver
paused
Script wasm://wasm/242f4a16 byte offset 34: Wasm opcode 0x0b
Debugger.resume
exports.main returned!
Finished run 2!
Start run 3
paused
function test() {
#debugger;
instance.exports.main();
Debugger.resume
paused
Script wasm://wasm/242f4a16 byte offset 33: Wasm opcode 0x01
Debugger.stepInto
paused
Script wasm://wasm/242f4a16 byte offset 34: Wasm opcode 0x0b
Debugger.resume
exports.main returned!
Finished run 3!