일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- 데이터전달
- 안드로이드
- 제어반전
- spring
- Algorithm
- 알고리즘
- Java
- 단축키
- Jenknis
- IntelliJ
- activity
- service
- 큐빙
- goland
- git
- vscode
- 백준
- insert
- intent
- broadcastreceiver
- 17837
- ubuntu
- 데이터
- mysql
- data
- 16197
- 프로그래머스
- 두 동전
- github
- Android
- Today
- Total
해보자
[Goland] cannot find the delve executable for drawing/amd64 본문
MacOS M1에서 goland의 디버깅이 되지 않는 문제가 있었다. ㅠㅡㅠ
1. go version `arm`으로 설치
2. goland Apple sillicon 버전으로 설치
3. GO environment 설정
export GOPATH=[[ my go project path ]]
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN:$GOROOT/bin
4. delve download
readme가 아주 친절하게 나와있기 때문에 직접 참고하는 것이 좋다.
https://github.com/go-delve/delve/blob/master/Documentation/installation/README.md
$ git clone https://github.com/go-delve/delve
$ cd delve
$ go install github.com/go-delve/delve/cmd/dlv
여기까지 하면 나의 GOPATH의 bin폴더에 `dlv` 파일이 생성된다.
5. goland의 Help - Edit Custom Properties를 누르면 idea.properties 파일이 열린다. 다음과 같이 적는다.
(아래의 dlv file path는 $MY_GOBIN_PATH/dlv)
dlv.path= [[ dlv file path]]
success!! 이제 디버깅을 할 수 있다. X-D
Reference
- https://developpaper.com/go-environment-configuration-and-use-of-mac-m1/
Go environment configuration and use of MAC M1 - Develop Paper
1 go environment configuration 1.1 download the installation package of go #Download address https://golang.google.cn/dl/ image-20210716085430669.png 1.2 configuring environment variables #Separately bash_ Profile and The environment variable configuration
developpaper.com
- https://stackoverflow.com/questions/71810045/unable-to-debug-golang-on-vscode-m1-mac-arm64
'Go' 카테고리의 다른 글
[Goland] go module을 등록했지만 indirect되는 문제 (0) | 2022.09.07 |
---|---|
go env -w GOBIN={path} ... does not override conflicting OS environment variable (0) | 2021.12.21 |