Skip to content

Conversation

@rcjsuen
Copy link
Contributor

@rcjsuen rcjsuen commented Sep 30, 2025

Buildx implements DAP to allow users to debug Dockerfile builds.

image image

Buildx implements DAP to allow users to debug Dockerfile builds.

Signed-off-by: Remy Suen <remy.suen@docker.com>
@cla-bot cla-bot bot added the cla-signed label Sep 30, 2025
Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen
Copy link
Contributor Author

rcjsuen commented Oct 8, 2025

I made a small change to note that the minimal version of Buildx that is required is v0.28.0. Let me know if there is anything else that may be unclear or needs further clarification in the documentation.

And here's a video that shows the feature in action to help with testing and validating this pull request.

2025-10-08-zed-dockerfile-debugging-720p.mov

@MrSubidubi
Copy link
Contributor

Thanks for this and sorry for the delay in review!

I'll try to get this in soon, hopefully tomorrow, latest next week.

Signed-off-by: Remy Suen <remy.suen@docker.com>
1. stopOnEntry can now be set in the configuration to immediately
suspend the debugger on the first line it tries to execute.
2. args can be defined in the configuration and they will be passed to
the build command. For example, you may use --build-arg
ARG_VAR=otherValue to change the value of an ARG instruction at
build-time.
3. Improved the sample in README.md to include a small description about
all the attributes that can be set.

Signed-off-by: Remy Suen <remy.suen@docker.com>
The default values that are defined in the JSON schema are not actually
injected into the configuration at runtime so we need to inject it
ourselves.

Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen
Copy link
Contributor Author

rcjsuen commented Oct 28, 2025

Thanks for this and sorry for the delay in review!

I'll try to get this in soon, hopefully tomorrow, latest next week.

@MrSubidubi No problem and thanks for the info! I know the Zed team's busy so I appreciate you making the time to slot this into your busy schedule. 👍

Technically, request is not a required attribute and we could just force
the value to be "launch". However, it feels better to make it a required
value that must be defined so that the user clearly understands that
only launched sessions are supported and that attached sessions are
unsupported.

Signed-off-by: Remy Suen <remy.suen@docker.com>
Copy link
Contributor

@MrSubidubi MrSubidubi left a comment

Choose a reason for hiding this comment

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

Works very well for me, thank you so much!

And also, thanks for updating the README accordingly! Much appreciated.

@MrSubidubi MrSubidubi merged commit 1c9350d into zed-extensions:main Nov 3, 2025
1 check passed
@MrSubidubi MrSubidubi mentioned this pull request Nov 3, 2025
MrSubidubi added a commit that referenced this pull request Nov 3, 2025
This PR bumps the version of the extension to 0.1.0.

Includes: 
- #25
- #27
MrSubidubi added a commit to zed-industries/extensions that referenced this pull request Nov 3, 2025
This PR bumps the version of the dockerfile extension to 0.1.0.

Includes: 
- zed-extensions/dockerfile#25
- zed-extensions/dockerfile#27
@rcjsuen rcjsuen deleted the buildx-dap-integration branch November 3, 2025 13:22
@rcjsuen
Copy link
Contributor Author

rcjsuen commented Nov 3, 2025

Works very well for me, thank you so much!

And also, thanks for updating the README accordingly! Much appreciated.

Thanks for reviewing this, @MrSubidubi! Glad to hear that the testing went smoothly for you.

Have a great week! :)

@MrSubidubi
Copy link
Contributor

Thanks, you too!

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.

2 participants