golang dlv

goland

‘protocol error e09 during set breakpoint for packet $z0,1910317,1’ thrown when
debugging a program with goland.

Solution

  • install Delve
    First, make sure you have the Delve debugger installed. If you don’t have it installed, you can install it via go get:

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

    This will install dlv into your $GOPATH/bin directory, or in Go 1.17 and above, into your $HOME/go/bin directory.

  • Configure Delve path in GoLand

    • open GoLand:Launch GoLand。
    • click Help → Edit Custom Properties, then add new line:
      1
      dlv.path=/opt/homebrew/Cellar/delve/1.22.4/bin/dlv (your dlv path)
  • restart GoLand