vs
Is "just" JavaScript, so you can catch errors with your favorite Web or Node.js method.
You need to decide what you want to do with main process errors. There is no right answer.
Same: "Just" JavaScript.
Less bad than main process errors - these will "just" go to the console. Handle them as you please.
Will crash your app. Let's look at one of those crashes:
electron --inspect=5858 your/app
electron --inspect-brk=5858 your/app
💁♂️ You can also do this in Visual Studio Code