Skip to content

Hot restart and breakpoints #2257

Closed
@elliette

Description

@elliette

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:

  1. Add a breakpoint (e.g., at line 100)
  2. 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)
  3. Click "hot restart" from DevTools
  4. The breakpoint is re-established at line 100, not line 102

Note: the breakpoint is getting re-added at the previous line here:

await addBreakpoint(
I'm not sure there is any way for DWDS to know what line to re-establish the breakpoint unless the debugger explicitly tells us.

In VSCode, the breakpoints persist in the right location through restarts. Whatever we are doing for VSCode, we should also do for Cider.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions