Skip to content

Initial support of DAP (Debug Adapter Protocol)#42

Merged
ktock merged 1 commit intomainfrom
dap
Jul 1, 2022
Merged

Initial support of DAP (Debug Adapter Protocol)#42
ktock merged 1 commit intomainfrom
dap

Conversation

@ktock
Copy link
Copy Markdown
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
@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