Repro for crbug.com/1368444
This illustrates the problem with confusing destructuring breakpoints and stepping.
Steps (for array destructuring)
- Reload this page with DevTools open
- Open
crbug-1368444-array-destructuring.js
in the Sources panel
- Set a breakpoint in line 5 by just clicking on the line number in the breakpoint gutter (observe that the breakpoint is set on the call to
foo
)
- Click and observe that the debugger pauses on line 5 before calling
foo
- Now press Step Over and observe that the debugger is still paused on line 5, but this time on the
a
- Now press Step Over again and observe that the debugger is still paused on line 5, but this time on the
b
Steps (for object destructuring)
- Reload this page with DevTools open
- Open
crbug-1368444-object-destructuring.js
in the Sources panel
- Set a breakpoint in line 5 by just clicking on the line number in the breakpoint gutter (observe that the breakpoint is set on the call to
foo
)
- Click and observe that the debugger pauses on line 5 before calling
foo
- Now press Step Over and observe that the debugger is still paused on line 5, but this time on the
a
- Now press Step Over again and observe that the debugger is still paused on line 5, but this time on the
b