2017-05-12 11 views
0

vscodeで新しく作成したエクスプレスプロジェクトを実行できません。単に「xxxxプログラムを起動できません;「outDir」属性を設定すると役立つかもしれません。Visual Studioコードでエクスプレスアプリケーションを実行できません

私のメインの実行ファイルはvscodeバージョン1.12.1

を使用してbinに/ WWWで

├── app.js 
├── bin 
│   └── www 

あるf6868fce3eeb16663840eb82123369dec6077a9b

日2017-05-04T21コミット:40:39.245Z

シェル1.6.6

レンダラー56.0.292 4.87

のLinux 4.8.0-51-一般的な#54-UbuntuのSMP火4月25日上のノード7.4.0

16時32分21秒UTC 2017 x86_64のx86_64でのx86_64のGNU/Linuxの

これは私ですlaunch.jsonファイル:

{ 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "type": "node", 
      "request": "launch", 
      "name": "Launch Program", 
      "program": "${workspaceRoot}/bin/www", 
      "protocol": "inspector" 
     }, 
     { 
      "type": "node", 
      "request": "attach", 
      "name": "Attach to Process", 
      "address": "localhost", 
      "port": 5858 
     } 
    ] 
} 

どうすればよいですか?

答えて

1

あなたのprogramの値はあなたの特急スクリプトを指しているはずです。このように:

{ 
    "version": "0.2.0", 
    "configurations": [ 
     { 
      "type": "node", 
      "request": "launch", 
      "name": "Launch Program", 
      "program": "${workspaceRoot}/app.js", 
      "protocol": "inspector" 
     }, 
     { 
      "type": "node", 
      "request": "attach", 
      "name": "Attach to Process", 
      "address": "localhost", 
      "port": 5858 
     } 
    ] 
} 
+0

いいえ、動作しません。 – Oscar

+0

「トレース」:「すべて」を起動設定に追加して、コンソールから役立つデバッグ情報を取得できるかどうかを確認します。また、これを読んで、役立つかどうかを確認してください... https://github.com/Microsoft/vscode/issues/7745 – TimHayes

+0

私はあなたのアドバイスを試みましたが、トレース結果は何の情報も与えていません。あなたは? https://pastebin.com/hVCrexeM – Oscar

関連する問題