2020-03-12 16:39:26 +00:00
|
|
|
Tests stepping through wasm scripts by byte offsets
|
|
|
|
Setting up global instance variable.
|
2020-03-17 17:25:36 +00:00
|
|
|
Got wasm script: wasm://wasm/42af3c82
|
|
|
|
Setting breakpoint on offset 72 (should be propagated to 73, the offset of the call), url wasm://wasm/42af3c82
|
2020-03-12 16:39:26 +00:00
|
|
|
{
|
2020-03-17 17:25:36 +00:00
|
|
|
columnNumber : 73
|
2020-03-12 16:39:26 +00:00
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
|
2020-03-25 10:52:46 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 52: Wasm opcode 0x1
|
2020-03-12 16:39:26 +00:00
|
|
|
Debugger.stepOver called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 53: Wasm opcode 0x1
|
2020-03-25 10:52:46 +00:00
|
|
|
Debugger.stepOut called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0xc
|
2020-03-25 10:52:46 +00:00
|
|
|
Debugger.stepOut called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
|
2020-03-13 11:51:04 +00:00
|
|
|
Debugger.stepOver called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0xc
|
2020-03-24 15:43:42 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 59: Wasm opcode 0x20
|
2020-03-13 11:51:04 +00:00
|
|
|
Debugger.resume called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
|
2020-03-19 10:40:47 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 52: Wasm opcode 0x1
|
2020-03-25 10:52:46 +00:00
|
|
|
Debugger.stepOut called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0xc
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 59: Wasm opcode 0x20
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 61: Wasm opcode 0x4
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 63: Wasm opcode 0x20
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 65: Wasm opcode 0x41
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 67: Wasm opcode 0x6b
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 68: Wasm opcode 0x21
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 70: Wasm opcode 0x41
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 73: Wasm opcode 0x10
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 52: Wasm opcode 0x1
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 53: Wasm opcode 0x1
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 54: Wasm opcode 0xb
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 75: Wasm opcode 0xc
|
2020-03-24 15:44:19 +00:00
|
|
|
Debugger.stepInto called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 59: Wasm opcode 0x20
|
2020-03-13 11:51:04 +00:00
|
|
|
Debugger.resume called
|
|
|
|
exports.main returned!
|
2020-03-17 17:25:36 +00:00
|
|
|
Test stepping over a recursive call
|
|
|
|
Setting breakpoint on the recursive call instruction @+93, url wasm://wasm/42af3c82
|
|
|
|
{
|
|
|
|
columnNumber : 93
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 93: Wasm opcode 0x10
|
2020-03-17 17:25:36 +00:00
|
|
|
Removing breakpoint
|
|
|
|
Debugger.stepOver called
|
2020-03-25 16:32:41 +00:00
|
|
|
Script wasm://wasm/42af3c82 byte offset 95: Wasm opcode 0x20
|
2020-03-17 17:25:36 +00:00
|
|
|
Debugger.resume called
|
2020-03-12 16:39:26 +00:00
|
|
|
Finished!
|