It's possible to debug the Renderer process simply by opening the Web Developers tools CMD+OPT+I ( CTRL+SHIFT+I on Windows) or from the menu View > Developer > Toggle Developers Tools.
In order to debug the Main process we can use node-inspector, here are the steps on how to use it:
- Install node-inspector:
npm install -g node-inspector
- Starts the app in debug mode, run:
npm run debug
- Starts the node inspector, run:
npm run inspector
Please note that we run node-inspector
using its default ports, it uses port 8080
to run the inspector web interface and port 5858
to communicate between with the node process. For more info plese consult node-inspector docs.