Skip to content

Instantly share code, notes, and snippets.

@huantt
Last active May 30, 2022 03:15
Show Gist options
  • Select an option

  • Save huantt/75ba1453f437d75a8f8d2ccf23b3f876 to your computer and use it in GitHub Desktop.

Select an option

Save huantt/75ba1453f437d75a8f8d2ccf23b3f876 to your computer and use it in GitHub Desktop.
Resole error: `Cannot find the Delve executable for darwin/arm64. Specify the Delve location by adding 'dlv.path=/path/to/delve' in Help | Edit Custom Properties.`
  1. Install golang for arm64. The easiest way is brew install golang if you have the arm64 version of brew, which is working very well now. Or you can also download the latest arm64 version here: https://go.dev/dl/
  2. Install the Apple Silicon version of Goland
  3. Check out delve. The PR has already been merged, git clone https://github.com/go-delve/delve, then build it with cd delve && make install, which will put delve in /Users/your_name/go/bin/dlv
  4. Open Goland and go to Help->Edit Custom VM Options. Add a line there with -Ddlv.path=/Users/your_name/go/bin/dlv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment