dva-boilerplate-electron
dva-boilerplate-electron copied to clipboard
如何调试main process ?
参考 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之类的要设置, 但不知道怎么弄.