Tips on solving 'DevTools was disconnected from the page' and Electron Helper dies

后端 未结 5 1551
醉梦人生
醉梦人生 2021-01-01 11:13

I\'ve a problem with Electron where the app goes blank. i.e. It becomes a white screen. If I open the dev tools it displays the following message.

In Activi

5条回答
  •  暖寄归人
    2021-01-01 11:57

    The trick to debugging a crash like this, is to enable logging, which is apparently disabled by default. This is done by setting the environment variable ELECTRON_ENABLE_LOGGING=1, as mentioned in this GitHub issue.

    With that enabled, you should see something along the lines of this in the console:

提交回复
热议问题