The Go extension allows you to launch or attach to Go programs for debugging. You can inspect variables and stacks, set breakpoints, and do other debugging activities using VS Code’s Debugging UI.
These debugging features are possible by using Delve, the Go debugger.
The Go extension has been communicating with Delve through a custom debug adapter program (legacy
mode).
As the new Delve
's native debug adapter implementation has become available (since Delve v1.6.1), the Go extension is transitioning to deprecate the legacy debug adapter in favor of direct communication with Delve via DAP.
📣 **We are happy to announce that the new dlv-dap
mode of Delve integration is enabled for local debugging by default. For remote debugging it is the default i