Scopes

This tests that the Scope view shown in DevTools shows all the relevant information when paused in a Wasm function. This includes the module (instance, memory, globals), local and stack scope. It's important that this information is presented to the user in a meaningful way.

Steps

  1. Open DevTools
  2. Locate the Wasm function foo from the scopes.wasm module and set a breakpoint on the global.get $imports.global line
  3. Reload the page
  4. Breakpoint should hit the new breakpoint
  5. Now look at the Scope in the DevTools and make sure that it shows all the necessary information mentioned above in an easily accessible fashion
  6. Step 1 time
  7. Now look at the Scope in the DevTools and make sure that it has updated the scope values accordingly
  8. Resume