buildx/dap
Jonathan A. Sternberg 3453f3b00a
dap: support evaluate request to invoke a container
Supports using the `evaluate` request in REPL mode to start a container
with the `exec` command. Presently doesn't support any arguments.

This improves the dap server so it is capable of sending reverse
requests and receiving the response. It also adds a hidden command
`dap attach` that attaches to the socket created by `evaluate`.

This requires the client to support `runInTerminal`.

Likely needs some additional work to make sure resources are cleaned up
cleanly especially when the build is unpaused or terminated, but it
should work as a decent base.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-07-15 10:45:25 -05:00
..
common dap: support stopOnEntry to configure behavior when starting the debugger 2025-07-07 09:39:23 -05:00
adapter.go dap: support evaluate request to invoke a container 2025-07-15 10:45:25 -05:00
adapter_test.go dap: support stopOnEntry to configure behavior when starting the debugger 2025-07-07 09:39:23 -05:00
client_test.go dap: add debug adapter implementation 2025-06-30 10:51:20 -05:00
config.go dap: support stopOnEntry to configure behavior when starting the debugger 2025-07-07 09:39:23 -05:00
conn.go dap: add debug adapter implementation 2025-06-30 10:51:20 -05:00
eval.go dap: support evaluate request to invoke a container 2025-07-15 10:45:25 -05:00
handler.go dap: support evaluate request to invoke a container 2025-07-15 10:45:25 -05:00
server.go dap: support evaluate request to invoke a container 2025-07-15 10:45:25 -05:00
thread.go dap: support evaluate request to invoke a container 2025-07-15 10:45:25 -05:00
variables.go dap: implement variable references 2025-07-14 10:59:05 -05:00