VS Code breakpoints jump to other lines

Generally in some IDEs, the breakpoints are fixed to the line number. So if code in that file changes after the breakpoint is set, the breakpoint doesn’t move. So when making changes,

  • stop the debug mode
  • make the changes
  • set the breakpoint
  • start debug mode again.
    This worked for me.

Leave a Comment

tech