Cannot find the Delve executable for windows/amd64.

Answered

I started getting the error below when trying to debug any Go code.

"Cannot find the Delve executable for windows/amd64. Specify the Delve location by adding 'dlv.path=/path/to/delve' in 'Help | Edit Custom Properties'."

I followed the instructions and set dlv.path=C:\Users\david.diaz\go\bin which is where I installed dlv.exe.

I restarted the IDE and tried running the debugger again but still get the same error.

Any ideas what I could be doing wrong?

1
5 comments

I got it to work by setting dlv.path to

dlv.path=C:\\Users\\david.diaz\\go\\bin\\dlv.exe

but this is a custom debugger. How do I tell Goland to use the default debugger instead?

Debugging with custom Delve: C:\Users\david.diaz\go\bin\dlv.exe. Delete the 'dlv.path' custom property and restart the IDE to use bundled Delve.

1

Hey David,

Please remove a custom entry, reproduce the problem again, collect IDE logs (Help | Collect Logs and Diagnostic Data) and upload them to http://uploads.jetbrains.com/, provide its ID.

0

hmm weird, I removed the custom entry, restarted the IDE, but no longer able to reproduce the issue.

0

Please let me know if you will be able to reproduce it again and share the logs.

0
  1. go install github.com/go-delve/delve/cmd/dlv@latest
  2. copy '%homepath%\go\bin\dlv.exe'  to  'C:\Users\xxxx\AppData\Roaming\JetBrains\IntelliJIdea2022.3\plugins\go-plugin\lib\dlv\windows\'
  3. restart idea
0

Please sign in to leave a comment.