2017-05-19 00:35:45 +00:00
|
|
|
Tests stepping through wasm scripts
|
2017-01-27 08:50:50 +00:00
|
|
|
Installing code an global variable.
|
|
|
|
Calling instantiate function.
|
|
|
|
Waiting for two wasm scripts to be parsed.
|
|
|
|
Ignoring script with url v8://test/callInstantiate
|
2017-04-07 14:37:30 +00:00
|
|
|
Got wasm script: wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0
|
|
|
|
Requesting source for wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0...
|
|
|
|
Got wasm script: wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1
|
|
|
|
Requesting source for wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1...
|
2017-01-27 08:50:50 +00:00
|
|
|
func $wasm_A
|
|
|
|
nop
|
|
|
|
nop
|
|
|
|
end
|
|
|
|
|
|
|
|
func $wasm_B (param i32)
|
|
|
|
loop
|
2019-05-20 23:36:09 +00:00
|
|
|
local.get 0
|
2017-01-27 08:50:50 +00:00
|
|
|
if
|
2019-05-20 23:36:09 +00:00
|
|
|
local.get 0
|
2017-01-27 08:50:50 +00:00
|
|
|
i32.const 1
|
|
|
|
i32.sub
|
2019-05-20 23:36:09 +00:00
|
|
|
local.set 0
|
2017-01-27 08:50:50 +00:00
|
|
|
call 0
|
|
|
|
br 1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-04-07 14:37:30 +00:00
|
|
|
Setting breakpoint on line 7 (on the setlocal before the call), url wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1
|
2017-01-27 08:50:50 +00:00
|
|
|
{
|
|
|
|
columnNumber : 6
|
|
|
|
lineNumber : 7
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2019-05-20 23:36:09 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >local.set 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (7:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":4} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":3} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":3} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2: >nop
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_A (1:2):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {} (Object)
|
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":3} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:2:2: >nop
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_A (2:2):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {} (Object)
|
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":3} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (9:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":3} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2019-05-20 23:36:09 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >local.set 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (7:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":3} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":2} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":2} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (9:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":2} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
2019-05-20 23:36:09 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >local.set 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (7:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":2} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":1} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2: >nop
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_A (1:2):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {} (Object)
|
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (9:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:1:2: >loop
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (1:2):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-05-20 23:36:09 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:2:4: >local.get 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (2:4):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:3:4: >if
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (3:4):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":1} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-05-20 23:36:09 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:4:6: >local.get 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (4:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:5:6: >i32.const 1
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (5:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":1} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:6:6: >i32.sub
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (6:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":1,"1":1} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-05-20 23:36:09 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:7:6: >local.set 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (7:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":1} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {"0":0} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:8:6: >call 0
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":0} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:1:2: >nop
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_A (1:2):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {} (Object)
|
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":0} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:2:2: >nop
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_A (2:2):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {} (Object)
|
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":0} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-0:3:0: >end
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_A (3:0):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {} (Object)
|
|
|
|
at wasm_B (8:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":0} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2017-04-07 14:37:30 +00:00
|
|
|
Paused at wasm://wasm/wasm-0c10a5fe/wasm-0c10a5fe-1:9:6: >br 1
|
2017-04-13 08:27:47 +00:00
|
|
|
at wasm_B (9:6):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
2017-07-02 19:18:57 +00:00
|
|
|
locals: {"arg#0":0} (Object)
|
2017-04-13 08:27:47 +00:00
|
|
|
stack: {} (Object)
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
2017-01-27 08:50:50 +00:00
|
|
|
exports.main returned!
|
|
|
|
Finished!
|