我的npm脚本紧密联系在一起,如下所示
"scripts": {
"start": "concurrently --raw \"npm run start-client\" \"npm run start-server\" \"npm run content-json\"",
"start-client": "node scripts/start.js",
"start-server": "NODE_ENV=development babel-node index.js",
"content-json": "node scripts/content-json.js"
}
我尝试使用以下命令添加新的npm启动配置,但这也无济于事
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"start",
"--",
"--inspect-brk=9229"
],
"port": 9229
}
我想使用原始的npm启动脚本运行调试器。