Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support of DAP (Debug Adapter Protocol) #42

Merged
merged 1 commit into from
Jul 1, 2022
Merged

Initial support of DAP (Debug Adapter Protocol) #42

merged 1 commit into from
Jul 1, 2022

Conversation

ktock
Copy link
Owner

@ktock ktock commented Jun 29, 2022

This commit adds an initial implementation of DAP (Debug Adapter Protocol).
This enables visual and interactive debugging of Dockerfiles on IDEs.

VS Code

https://github.com/ktock/vscode-buildg

vscode-dap

Emacs

See also ./examples/dap/emacs.

emacs-dap

Neovim

See also ./examples/dap/nvim.

nvim-dap

Launch Configuration

In the launch configuration (e.g. launch.json on VS Code), the following properties are provided.

  • program string REQUIRED : Absolute path to Dockerfile.
  • stopOnEntry boolean : Automatically stop after launch. (default: true)
  • target string : Target build stage to build.
  • image string : Image to use for debugging stage.
  • build-args array : Build-time variables.
  • ssh array : Allow forwarding SSH agent to the build. Format: default|<id>[=<socket>|<key>[,<key>]]
  • secrets array : Expose secret value to the build. Format: id=secretname,src=filepath

@ktock ktock force-pushed the dap branch 7 times, most recently from 2f1947e to c5ab3c1 Compare July 1, 2022 06:39
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
@ktock ktock marked this pull request as ready for review July 1, 2022 07:04
@ktock ktock merged commit d0b75aa into main Jul 1, 2022
@ktock ktock deleted the dap branch July 1, 2022 07:08
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.

1 participant