Unable to Debug in GoLand IDE : could not launch process: can not run under Rosetta

Viewed 911

Hi New here to Go Language. I have indtalled go and have downloaded GoLand. I was able to run the code successfully. However when i try to debug the code its showing the following error

could not launch process: can not run under Rosetta, check that the installed build of Go is right for your CPU architecture

My Go Version is : go version go1.17.8 darwin/arm64 Device details : enter image description here

What should i do to resolve this issue?

1 Answers
  # build new dlv
   git clone https://github.com/go-delve/delve.git
   cd delve/cmd/dlv
   go build 
   go install 
  
   cd $GOPATH/bin
   mkdir macarm
   cp ./dlv ./macarm/

 ### config goland ide 
 menu: help -> edit Coustom Properties   
 input : dlv.path=$GOPATH/bin

 
Related