2019-11-18 18:57:22 +00:00
|
|
|
Tests stepping from javascript into wasm
|
|
|
|
Installing code and global variable.
|
|
|
|
Calling instantiate function.
|
|
|
|
Waiting for wasm scripts to be parsed.
|
|
|
|
Ignoring script with url v8://test/callInstantiate
|
2020-02-12 13:41:02 +00:00
|
|
|
Got wasm script: wasm://wasm/7d022e0e
|
2019-11-18 18:57:22 +00:00
|
|
|
Setting breakpoint on line 3 of wasm function
|
|
|
|
{
|
2020-01-09 12:11:55 +00:00
|
|
|
columnNumber : 37
|
|
|
|
lineNumber : 0
|
2019-11-18 18:57:22 +00:00
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
|
|
|
paused
|
|
|
|
function test() {
|
|
|
|
#debugger;
|
|
|
|
instance.exports.main(1);
|
|
|
|
|
|
|
|
Debugger.stepInto
|
|
|
|
paused
|
|
|
|
debugger;
|
|
|
|
#instance.exports.main(1);
|
|
|
|
}
|
|
|
|
|
|
|
|
Debugger.stepInto
|
|
|
|
paused
|
2020-02-12 13:41:02 +00:00
|
|
|
Script wasm://wasm/7d022e0e byte offset 35: Wasm opcode 0x20
|
2019-11-18 18:57:22 +00:00
|
|
|
Debugger.resume
|
|
|
|
paused
|
2020-02-12 13:41:02 +00:00
|
|
|
Script wasm://wasm/7d022e0e byte offset 37: Wasm opcode 0x41
|
2019-11-18 18:57:22 +00:00
|
|
|
Debugger.resume
|
|
|
|
exports.main returned!
|
|
|
|
Finished!
|