dva-boilerplate-electron icon indicating copy to clipboard operation
dva-boilerplate-electron copied to clipboard

如何调试main process ?

Open espring opened this issue 7 years ago • 0 comments

参考 https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process.md

使用electron-inspector没搞定, 最后还是用VS Code可以debug了. 参考: https://github.com/electron/electron/blob/master/docs/tutorial/debugging-main-process-vscode.md

lauch.json中cwd, 需要这样设置: "cwd": "${workspaceRoot}/app/",

不过, 只能在app/dist/main.js中设置断点, 可能是source-map之类的要设置, 但不知道怎么弄.

espring avatar Jul 02 '17 09:07 espring