vscode node debug launch.json

2020-02-12  本文已影响0人  一只重拾梦想的小水
{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "program": "${workspaceFolder}/lib/index.js",
      "preLaunchTask": "tsc: build - tsconfig.json",
      "outFiles": ["${workspaceFolder}/lib/**/*.js"],
      "env": {
        "PORT": "3008",
        "LOG_DIR": "./.logs/",
        "REDIS_HOSTS": "x",
        "ETCD_NAMESPACE": "x",
        "ETCD_HOSTS": "x",
        "APP_ENV": "x",
        "APP_REGION": "x"
      },

      "runtimeExecutable": "nodemon",
      "restart": true
    }
  ]
}

上一篇 下一篇

猜你喜欢

热点阅读