executed in the main process you will need to use an external debugger and
launch Electron with the
Command Line Switches
Use one of the following command line switches to enable debugging of the main process:
Electron will listen for V8 inspector protocol messages on the specified
an external debugger will need to connect on this port. The default
electron --inspect=5858 your/app
You will need to use a debugger that supports the V8 inspector protocol.
- Connect Chrome by visiting
chrome://inspectand selecting to inspect the launched Electron app present there.
- Debugging in VSCode