Skip to content

dap: skip the load build context step when it doesn't have an associated source line#3712

Merged
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:dap-skip-context-without-source
Mar 11, 2026
Merged

dap: skip the load build context step when it doesn't have an associated source line#3712
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:dap-skip-context-without-source

Conversation

@jsternberg
Copy link
Copy Markdown
Collaborator

Skip the load build context step when it doesn't have an associated
source line. This caused an extra branch to be created in an otherwise
pretty straightforward dockerfile where stepping in on a copy
instruction that used the context would stay on the same line because it
"stepped into" the context loading rather than being treated the same as
step next.

This resulted in some bad and confusing ergonomics with the cursor
position that were a bit confusing and unexpected.

There might be more areas to try and prune but the most common one, a
single branch instruction that doesn't have a location, now gets skipped
which is the exact thing that was generated for loading the context.

Fixes #3565.

…ted source line

Skip the load build context step when it doesn't have an associated
source line. This caused an extra branch to be created in an otherwise
pretty straightforward dockerfile where stepping in on a copy
instruction that used the context would stay on the same line because it
"stepped into" the context loading rather than being treated the same as
step next.

This resulted in some bad and confusing ergonomics with the cursor
position that were a bit confusing and unexpected.

There might be more areas to try and prune but the most common one, a
single branch instruction that doesn't have a location, now gets skipped
which is the exact thing that was generated for loading the context.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@tonistiigi tonistiigi merged commit b046c39 into docker:master Mar 11, 2026
244 of 245 checks passed
@jsternberg jsternberg deleted the dap-skip-context-without-source branch March 11, 2026 05:15
@crazy-max crazy-max added this to the v0.33.0 milestone Mar 14, 2026
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.

DAP: Step in will pause at points that do not have an associated source line

3 participants