Memory with memory updates
This tests that we can inspect the Wasm memory that is continuously updated within a loop.
Steps
- Open DevTools
- Locate the Wasm function
loop
from the memory-write.wasm
module and set a breakpoint on the first line in the loop body
- Reload the page
- Breakpoint should hit the new breakpoint
- Now look at the Scope in the DevTools and right click on the
imports.memory
- Select "Reveal in Memory Inspector panel"
- The linear memory inspector should open
- Step in the loop body
- After the
i64.store
instruction the memory should reflect the latest updates