Skip to content

调试

sh
go version

升级delve到最新版本

sh
go install github.com/go-delve/delve/cmd/dlv@latest

vscode

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.