使用 VSCode 进行主进程调试
{
"version": "0.2.0",
{
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"windows": {
},
"args" : ["."]
}
}
这是一个预先配置的项目,你可以下载并直接在 VSCode中调试: https://github.com/octref/vscode-electron-debug/tree/master/electron-quick-start