2018-09-13 19:19:30 +00:00
|
|
|
Tests stepping through wasm scripts with source maps
|
|
|
|
Installing code an global variable and instantiate.
|
2019-10-31 18:23:54 +00:00
|
|
|
Got wasm script: wasm://wasm/3697f0fe
|
2018-09-13 19:19:30 +00:00
|
|
|
Script sourceMapURL: abc
|
2019-10-31 18:23:54 +00:00
|
|
|
Requesting source for wasm://wasm/3697f0fe...
|
2018-09-13 19:19:30 +00:00
|
|
|
Source retrieved without error: true
|
2019-10-31 18:23:54 +00:00
|
|
|
Setting breakpoint on offset 54 (on the setlocal before the call), url wasm://wasm/3697f0fe
|
2018-09-13 19:19:30 +00:00
|
|
|
{
|
|
|
|
columnNumber : 54
|
|
|
|
lineNumber : 0
|
|
|
|
scriptId : <scriptId>
|
|
|
|
}
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:54
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":4}
|
|
|
|
stack: {"0":3}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:56
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":3}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:38
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:38):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {}
|
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":3}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:39
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:39):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {}
|
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":3}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:58
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":3}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:54
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":3}
|
|
|
|
stack: {"0":2}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:56
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":2}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOver called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:58
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":2}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:54
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":2}
|
|
|
|
stack: {"0":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:56
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:38
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:38):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {}
|
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepOut called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:58
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:43
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:43):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:45
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:45):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:47
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:47):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {"0":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:49
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:49):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:51
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:51):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {"0":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:53
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:53):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {"0":1,"1":1}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:54
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:54):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":1}
|
|
|
|
stack: {"0":0}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:56
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":0}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:38
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:38):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {}
|
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":0}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:39
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:39):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {}
|
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":0}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:40
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_A (0:40):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
stack: {}
|
|
|
|
at wasm_B (0:56):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":0}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.stepInto called
|
2019-10-31 18:23:54 +00:00
|
|
|
Paused at wasm://wasm/3697f0fe:0:58
|
2018-09-13 19:19:30 +00:00
|
|
|
at wasm_B (0:58):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
- scope (local):
|
|
|
|
locals: {"arg#0":0}
|
|
|
|
stack: {}
|
|
|
|
at (anonymous) (0:17):
|
|
|
|
- scope (global):
|
|
|
|
-- skipped
|
|
|
|
Debugger.resume called
|
|
|
|
exports.main returned!
|
|
|
|
Finished!
|