vscode-swift icon indicating copy to clipboard operation
vscode-swift copied to clipboard

debug: fallback to mark breakpoints verified on stopped/breakpoint events

Open amanthatdoescares opened this issue 2 weeks ago • 2 comments

Description

LLDB-DAP sometimes fails to mark breakpoints as verified in the setBreakpoints response, even though the breakpoint is hit during debugging. This leads to the VS Code UI showing the breakpoint as “unverified” while execution actually stops there.

This PR adds a safe fallback that marks breakpoints as verified when we detect them being hit via:

  • a stopped event with reason: "breakpoint", or
  • a breakpoint event containing a valid source and line.

This improves consistency between actual debugger behavior and the UI, especially for Swift executables and swift test.

Issue: https://github.com/swiftlang/vscode-swift/issues/1871

Tasks

  • [ ] Required tests have been written
  • ~[ ] Documentation has been updated~
  • [x] Added an entry to CHANGELOG.md if applicable

amanthatdoescares avatar Dec 06 '25 22:12 amanthatdoescares