任意の環境変数を設定

 {
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [{
    "type": "node",
    "request": "launch",
    "name": "Launch Program",
    "program": "${file}",
    "env": {
      "BROWSER": "Chrome"
    }
  }]
 }
  • launch.jsonに上のようにenvを追加して、任意の環境変数を設定する。
  • この場合、環境変数BROWSERに値"chrome"を設定している。

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2019-01-27 (日) 18:41:57