Closed
Description
I noticed an issue around breakpoints / hot restart when working on Cider debugging (a "phantom" breakpoint was being hit after hot restart, need to do more investigation to figure out how it got into that state).
However, I've noticed we have another hot restart / breakpoint issue in DevTools:
- Add a breakpoint (e.g., at line 100)
- Edit the file so that the breakpoint line should be moved (e.g., at 2 lines above so the breakpoint should now be at line 102)
- Click "hot restart" from DevTools
- The breakpoint is re-established at line 100, not line 102
Note: the breakpoint is getting re-added at the previous line here:
webdev/dwds/lib/src/debugging/debugger.dart
Line 305 in 1bd434b
In VSCode, the breakpoints persist in the right location through restarts. Whatever we are doing for VSCode, we should also do for Cider.