调试
sh
go version升级delve到最新版本
sh
go install github.com/go-delve/delve/cmd/dlv@latestvscode
1.Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P). 2.Run the command Go: Install/Update Tools. 3.Select dlv from the list and install it. 4.Restart VS Code.