通过全局npm安装可以这样启动
{
"name": "debug",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "electron",
"program": "${workspaceFolder}/main.js",
}
配置支持断点的启动
https://blog.csdn.net/ruyulin/article/details/78885246
增加调试参数
https://blog.csdn.net/u012332816/article/details/80801106