electron 主进程调试
程序员文章站
2022-06-04 19:36:03
...
packjson文件设置为
"start": "electron --inspect=5858 ."
vscode debug 设置
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"args": ["."],
"outputCapture": "std"
}
]
}
按F5运行
上一篇: Electron渲染进程调用主进程
下一篇: 主机访问VirtualBox虚拟机服务