如何临时给Visual Studio Code的nodejs进程注入环境变量

solution


{
    "version": "0.2.0",
    "configurations": [
      {
        "type": "node",
        "request": "launch",
        "name": "Jerry nodejs single step debug",
        "program": "${workspaceFolder}/express/server.js",
        "env": {
          "VCAP_SERVICES": "{\"ml-foundation\":[{\"name\":\"MLF-LabelScanning\",\"credentials\":{\"clientid\":\"xxx\",\"clientsecret\":\"xxx\",\"serviceurls\":{\"IMAGE_FEATURE_EXTRACTION_URL\":\"https://mlfproduction-image-feature-extractor.cfapps.eu10.hana.ondemand.com/api/v2/image/feature-extraction\",\"SIMILARITY_SCORING_URL\":\"https://mlfproduction-similarity-scoring.cfapps.eu10.hana.ondemand.com/api/v2/similarity-scoring\"},\"url\":\"https://cecir.authentication.eu10.hana.ondemand.com\"}}]}"
        }
      },
      {
        "name": "Chrome",
        "type": "chrome",
        "request": "launch",
        "url": "http://localhost:8080",
        "webRoot": "${workspaceFolder}/src",
        "sourceMapPathOverrides": {
          "webpack:///src/*": "${webRoot}/*"
        }
      }
    ]
  }

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

发布了6727 篇原创文章 · 获赞 645 · 访问量 111万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 深蓝海洋 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览