使用 VSCode 进行主进程调试
1. 在 VSCode 中打开一个 Electron 工程。
2. 使用以下配置添加一个文件 .vscode / launch.json
:
.vscode / launch.json
:注意: 在 Windows 中, runtimeExecutable
的参数是 "${workspaceRoot}/node_modules/.bin/electron.cmd"
。
3. 调试
Last updated
Was this helpful?