vscode-swift
vscode-swift copied to clipboard
debug: fallback to mark breakpoints verified on stopped/breakpoint events
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
stoppedevent withreason: "breakpoint", or - a
breakpointevent 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