Inlining

This tests that we can step in an intuitive way in source-mapped wasm code that includes inlining.

Steps

  1. Open DevTools
  2. Locate the function dsquare from the inlining.c module and set a breakpoint on the __attribute__((noinline)) int dsquare(int x, int y) { line
  3. A breakpoint should be set at the selected position
  4. Reload the page
  5. Breakpoint should hit the new breakpoint
  6. Step multiple times. Stepping should eventually go to line int dsq = square(x), enter the function square, go through it, and return at the line int dsq = square(x);
  7. Resume