when trying to use the VSCode Debugger, I get an error message:
"Failed to launch: could not launch process: can not run under Rosetta, check that the installed build of Go is right for your CPU architecture"
some background context as I read solutions for similar questions:
- I use foundationDB which does not work with GO arm64
- For this reason, I am using GO amd64
- Switching to arm64 would mean that foundationDB will not work, which is not an option
I tried downloading dlv, but it doesn't work. Also tried the solution proposed here to run VSCode integrated terminal in x86-64.
Is there a way for the debugger to work with Apple M1 using go1.18 darwin/amd64?
This is a popular issue on Mac. The solution is to install Golang and VSCODE in ARM-64 (not AMD64).
Here are some links for reference
https://github.com/go-delve/delve/issues/2604
Cannot run debug Go using VSCode on Mac M1