2018-09-13 19:19:30 +00:00
|
|
|
Tests stepping through wasm scripts with source maps
|
2021-01-05 05:51:52 +00:00
|
|
|
|
|
|
|
Running test: test
|
2020-02-12 13:41:02 +00:00
|
|
|
Got wasm script: wasm://wasm/9b4bf87e
|
2018-09-13 19:19:30 +00:00
|
|
|
Script sourceMapURL: abc
|
2020-02-12 13:41:02 +00:00
|
|
|
Requesting source for wasm://wasm/9b4bf87e...
|
2018-09-13 19:19:30 +00:00
|
|
|
Source retrieved without error: true
|
2020-02-12 13:41:02 +00:00
|
|
|
Setting breakpoint on offset 54 (on the setlocal before the call), url wasm://wasm/9b4bf87e
|
2018-09-13 19:19:30 +00:00
|
|
|
{
|
|
|
|
columnNumber : 54
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 3 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 4 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10 (kExprCallFunction)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 3 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 38: Wasm opcode 0x01 (kExprNop)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:38):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2020-04-15 05:02:40 +00:00
|
|
|
- scope (module):
|
2018-09-13 19:19:30 +00:00
|
|
|
-- skipped
|
2020-12-24 09:30:23 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 3 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 39: Wasm opcode 0x01 (kExprNop)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:39):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2020-04-15 05:02:40 +00:00
|
|
|
- scope (module):
|
2018-09-13 19:19:30 +00:00
|
|
|
-- skipped
|
2020-12-24 09:30:23 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 3 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c (kExprBr)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 3 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 2 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 3 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10 (kExprCallFunction)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 2 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c (kExprBr)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 2 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 2 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10 (kExprCallFunction)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 38: Wasm opcode 0x01 (kExprNop)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:38):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2020-04-15 05:02:40 +00:00
|
|
|
- scope (module):
|
2018-09-13 19:19:30 +00:00
|
|
|
-- skipped
|
2020-12-24 09:30:23 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c (kExprBr)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 45: Wasm opcode 0x20 (kExprLocalGet)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:45):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 47: Wasm opcode 0x04 (kExprIf)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:47):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 49: Wasm opcode 0x20 (kExprLocalGet)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:49):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 51: Wasm opcode 0x41 (kExprI32Const)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:51):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 53: Wasm opcode 0x6b (kExprI32Sub)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:53):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 1 (i32)
|
|
|
|
1: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 54: Wasm opcode 0x21 (kExprLocalSet)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2021-02-08 15:39:00 +00:00
|
|
|
0: 0 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 1 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 56: Wasm opcode 0x10 (kExprCallFunction)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 0 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 38: Wasm opcode 0x01 (kExprNop)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:38):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2020-04-15 05:02:40 +00:00
|
|
|
- scope (module):
|
2018-09-13 19:19:30 +00:00
|
|
|
-- skipped
|
2020-12-24 09:30:23 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 0 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 39: Wasm opcode 0x01 (kExprNop)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:39):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2020-04-15 05:02:40 +00:00
|
|
|
- scope (module):
|
2018-09-13 19:19:30 +00:00
|
|
|
-- skipped
|
2020-12-24 09:30:23 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 0 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 40: Wasm opcode 0x0b (kExprEnd)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:40):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2020-04-15 05:02:40 +00:00
|
|
|
- scope (module):
|
2018-09-13 19:19:30 +00:00
|
|
|
-- skipped
|
2020-12-24 09:30:23 +00:00
|
|
|
at wasm_B (0:56):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 0 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-10-16 15:26:46 +00:00
|
|
|
Script wasm://wasm/9b4bf87e byte offset 58: Wasm opcode 0x0c (kExprBr)
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
2020-03-25 21:23:02 +00:00
|
|
|
- scope (wasm-expression-stack):
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (local):
|
2021-02-08 15:39:00 +00:00
|
|
|
$var0: 0 (i32)
|
2020-12-24 09:30:23 +00:00
|
|
|
- scope (module):
|
|
|
|
-- skipped
|
2018-09-13 19:19:30 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
|
|
|
exports.main returned!
|