问题描述 投票:0回答:1
我的主项目中有两个项目作为子模块,每个子模块都有自己的带有环境变量的launch.json。我想保持这个状态,因为团队中的其他人都在分别处理这些项目。

在根目录下使用下面的 launch.json 可以让我启动其中一个子模块,但没有嵌套的 launch.json 的环境变量。

如何在不直接改变子模块的情况下启动、合并或引用嵌套的launch.json?我应该把环境变量移到其他地方吗?

{
  "name": "Test",
  "type": "node",
  "request": "launch",
  "cwd": "${workspaceRoot}/unit-api",
  "runtimeExecutable": "npm",
  "runtimeArgs": ["run-script", "debug"],
  "port": 9229
},

node.js vue.js visual-studio-code vscode-settings
1个回答
0
投票

这让我可以用子模块的envars运行一个自定义的启动配置。

[编辑]其中,顺便说一下,不应该以任何方式存储在git repo中,我只记得 。

© www.soinside.com 2019 - 2024. All rights reserved.