如何临时给Visual Studio Code的nodejs进程注入环境变量
程序员文章站
2024-01-07 20:48:22
...
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的原创文章,请关注公众号"汪子熙":