Skip to content

Conversation

@jsternberg
Copy link
Collaborator

Step into and step out are required by the UI for DAP. We don't have a
way to implement these in a logical manner but they need to exist. We'll
discuss in further iterations how these might differ from next and
continue, but for now, we just need some implementation for the UI.

@jsternberg jsternberg requested a review from tonistiigi July 11, 2025 19:43
@jsternberg jsternberg requested a review from ktock July 11, 2025 19:43
@jsternberg jsternberg added this to the v0.26.0 milestone Jul 11, 2025
dap/adapter.go Outdated
subReq.Arguments.ThreadId = req.Arguments.ThreadId
subReq.Arguments.SingleThread = req.Arguments.SingleThread

if err := d.Continue(c, &subReq, &subResp); err != nil {
Copy link
Collaborator

@ktock ktock Jul 12, 2025

Choose a reason for hiding this comment

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

Implementation looks good to me.
But if there is no concept like step-in and step-out in dockerfile, maybe leaving them as nop is enough ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They show up in the visual studio code UI and don't seem to be behind a capability so I thought aliasing them was probably easiest for now. If also like to get done feedback from users about how they feel these buttons should work.

If it doesn't make sense we can leave it out but I figured that step in is the equivalent of next anyway if there's no function and step out is the equivalent of continue if you consider llb to be one big main function.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the explanation, making them as aliases sounds good to me.

Step into and step out are required by the UI for DAP. We don't have a
way to implement these in a logical manner but they need to exist. We'll
discuss in further iterations how these might differ from next and
continue, but for now, we just need some implementation for the UI.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg jsternberg marked this pull request as ready for review July 14, 2025 16:01
@tonistiigi tonistiigi merged commit ebe66f6 into docker:master Jul 14, 2025
138 checks passed
@jsternberg jsternberg deleted the dap-step-into branch July 14, 2025 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants