Created
February 5, 2017 14:15
-
-
Save kaosf/10f21dccb9ef23bf9a8c880a8bad311e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yaourt -S visual-studio-code | |
$ code | |
Vimプラグインと,Go richなんたらプラグインをインストールして再起動 | |
Alt+F > Preferences > User Settings > Go configuration | |
- { | |
- } | |
+ { | |
+ "go.goroot": "/home/username/.go-vscode", | |
+ } | |
https://golang.org/dl/ | |
Linux用のgoのバイナリをダウンロードして ~/.go-vscode に展開しておく | |
wget https://storage.googleapis.com/golang/go1.7.5.linux-amd64.tar.gz | |
#go get github.com/derekparker/delve # ←これはダメ | |
go get -u -v github.com/derekparker/delve/cmd/dlv | |
参考 http://qiita.com/qt-luigi/items/1e73c2e129c408c16cbf | |
GOPATHの環境変数がきちんと実行環境に読み込まれているようにしておく必要がある | |
例: | |
xinitrcなどには何も書いてないのにWMのランチャから起動する等のやり方ではダメ | |
.zprofileにしかGOPATHの設定をしていないのだから,ターミナルエミュレータから | |
$ code | |
として起動しないとdlvがいつまで経っても見つからない | |
F5でデバッガ | |
Ctrl-F5で通常実行 | |
(※初回時はGoを選択する) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment