2019-11-20 11:27:40 +00:00
|
|
|
Tests stepping through wasm scripts by byte offsets
|
|
|
|
Setting up global instance variable.
|
2020-02-12 13:41:02 +00:00
|
|
|
Got wasm script: wasm://wasm/befe41aa
|
|
|
|
Setting breakpoint on offset 59 (should be propagated to 60, the offset of the call), url wasm://wasm/befe41aa
|
2019-11-06 15:51:44 +00:00
|
|
|
{
|
2019-11-20 11:27:40 +00:00
|
|
|
columnNumber : 60
|
2019-11-06 15:51:44 +00:00
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":3}
|
2019-11-20 11:27:40 +00:00
|
|
|
stack: {"0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 39: Wasm opcode 0x1
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_A (0:39):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":3}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 40: Wasm opcode 0x1
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_A (0:40):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":3}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0xc
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:62):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":3}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":2}
|
2019-11-20 11:27:40 +00:00
|
|
|
stack: {"0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0xc
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:62):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":2}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
2019-11-20 11:27:40 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 44: Wasm opcode 0x3
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:44):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":2}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-20 11:27:40 +00:00
|
|
|
stack: {"0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 39: Wasm opcode 0x1
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_A (0:39):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0xc
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:62):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 44: Wasm opcode 0x3
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:44):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 46: Wasm opcode 0x20
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:46):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 48: Wasm opcode 0x4
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:48):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {"0":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 50: Wasm opcode 0x20
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:50):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 52: Wasm opcode 0x41
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:52):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {"0":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 54: Wasm opcode 0x6b
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:54):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {"0":1,"1":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 55: Wasm opcode 0x21
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:55):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {"0":0}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 57: Wasm opcode 0x41
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:57):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":0}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 60: Wasm opcode 0x10
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-20 11:27:40 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":0}
|
2019-11-20 11:27:40 +00:00
|
|
|
stack: {"0":1024}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 39: Wasm opcode 0x1
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_A (0:39):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":0}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 40: Wasm opcode 0x1
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_A (0:40):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":0}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 41: Wasm opcode 0xb
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_A (0:41):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":1024}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:60):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":0}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/befe41aa byte offset 62: Wasm opcode 0xc
|
2020-01-09 12:11:55 +00:00
|
|
|
at wasm_B (0:62):
|
2019-11-06 15:51:44 +00:00
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2020-03-11 16:55:08 +00:00
|
|
|
locals: {"var0":0}
|
2019-11-06 15:51:44 +00:00
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
|
|
|
exports.main returned!
|
|
|
|
Finished!
|