Skip to content

dap: detect breakpoints for files when the case differs#3704

Open
jsternberg wants to merge 1 commit intodocker:masterfrom
jsternberg:dap-case-insensitive-breakpoints
Open

dap: detect breakpoints for files when the case differs#3704
jsternberg wants to merge 1 commit intodocker:masterfrom
jsternberg:dap-case-insensitive-breakpoints

Conversation

@jsternberg
Copy link
Collaborator

@jsternberg jsternberg commented Mar 6, 2026

Case insensitive filesystems can cause breakpoints to not be seen or
verified. This is particularly true on Windows where the drive letter
can also participate in the filepath.

Change the detection logic for a breakpoint to be case insensitive. At
the same time, report the name of the source as part of the breakpoint
so that the editor can be told which casing we're expecting to be used.

Fixes docker/vscode-extension#235.

@jsternberg jsternberg force-pushed the dap-case-insensitive-breakpoints branch from 8df6f99 to 70d4b96 Compare March 6, 2026 19:59
Case insensitive filesystems can cause breakpoints to not be seen or
verified. This is particularly true on Windows where the drive letter
can also participate in the filepath.

Change the detection logic for a breakpoint to be case insensitive. At
the same time, report the name of the source as part of the breakpoint
so that the editor can be told which casing we're expecting to be used.

Signed-off-by: Jonathan A. Sternberg <[email protected]>
@jsternberg jsternberg force-pushed the dap-case-insensitive-breakpoints branch from 70d4b96 to b521a08 Compare March 6, 2026 20:01
@jsternberg jsternberg requested review from rcjsuen and tonistiigi March 6, 2026 20:05
Copy link
Contributor

@rcjsuen rcjsuen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified by debugging on Windows with contextPath having c and C as the drive letter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug Docker Builds with VSC does not break on breakpoint

2 participants