Stepping in original source with state
This tests that we can successfully complete a debugging session with source maps, including
setting breakpoints, deleting breakpoints, and stepping.
Steps
- Open DevTools
- Open stepping-with-state.c
- Set a breakpoint at function
main
on line int n = 10
- Reload
- Breakpoint should hit set breakpoint
- Step a few times until the next line is hit
- Remove breakpoint
- Set a breakpoint at function
multiplyByConstant
on line for (int i = 0; i < length; ++i) {
- Reload
- Breakpoint should hit the new breakpoint
- Step a few times and inspect the wasm variables in the scope view
- Remove breakpoint
- Resume