LoginSignup
1
0

More than 5 years have passed since last update.

VScodeでデバッグ ターゲット (spawn node ENOENT) を起動できません。って出て困った時にやったこと

Posted at

MacOS の VScode 1.3以上からデバッグが出来なくなったって人が日本にも海外にもちらほらいるのですが、いまいちみんなの解決方法がよく分からない・・・というか試してもダメだった

その後、試行錯誤してなんとかデバック出来る様になったので、やり方を書いておきます。

> cd /usr/local/bin
> ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code code

これで、codeというコマンドでVScodeが起動出来るようになります。

VScode上のコマンドパレットで[install code command in PATH]でも同じ結果になります

これをやった後に、コマンドでVScodeを立ち上げたときだけ、デバッグできるようになりました。

> code PROJECTPATH

まだ良い方法があるかもしれないけど・・・とりあえずこれで凌ぎます。

1
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
1
0