Stepping with state in multi-threaded code

This tests that we can successfully complete a debugging session with state, including setting breakpoints, deleting breakpoints, and stepping with multiple threads.

Steps

  1. Open DevTools
  2. Open stepping-with-state.wasm
  3. Inspect main thread:
    1. Set a breakpoint at function addMultiply on line local.get $var0
    2. Reload
    3. Breakpoint should hit set breakpoint in main thread
    4. Step 2 times and inspect the variables in the scope view
    5. Remove breakpoint
    6. Set a breakpoint at function mul on line local.get $var0
    7. Reload
    8. Breakpoint should hit the new breakpoint in main thread
    9. Step 2 times and inspect the variables in the scope view
    10. Resume
  4. Inspect worker thread:
    1. Set a breakpoint at function divSub on line local.get $var0
    2. Reload
    3. Breakpoint should hit set breakpoint in worker thread
    4. Step 2 times and inspect the variables in the scope view
    5. Remove breakpoint
    6. Set a breakpoint at function div on line local.get $var0
    7. Reload
    8. Breakpoint should hit the new breakpoint in worker thread
    9. Step 2 times and inspect the variables in the scope view
    10. Resume