LoginSignup
3
0

More than 5 years have passed since last update.

macOS Sierra(OS X 10.12.1)でgoのVisual Studio Code上でのデバッグ

Last updated at Posted at 2016-11-18

2016/11/18時点の情報。
brew install go-delve/delve/delve
でいくらやっても
could not launch process: could not fork/exec
となり、デバッグ実行できず。brew installだと証明書は作成されるが、dlvに署名されていないようにみえる。

brewは諦めて手動インストール。証明書はbrewのものを流用できて比較的ラク。
再度デバッグ実行するも、今度は以下のエラーが発生。
could not launch process: could not get thread count

どうも、Sierraに由来する問題があるらしく、以下のようにPRを適用することでとりあえずデバッグ実行できるようにはなった。

git clone https://github.com/derekparker/delve.git && cd delve
git fetch origin pull/665/head
git checkout FETCH_HEAD
CERT=dlv-cert make install.

記事作成時点ではまだcloseしてないので要監視。

情報元:
OS X: cannot get thread count #645

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0