How to debug electron production binaries

前端 未结 6 1306
一个人的身影
一个人的身影 2021-02-02 11:44

I can\'t open devtools in the built version of my electron app. Therefore i want to find another solution to log any errors that only occur in the production version.

Is

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-02 12:15

    Launch your Electron application with the --remote-debugging-port=8315 flag set and navigate to chrome://inspect/#devices in Chrome 80+. Then click Configure... and add localhost:8315 as a discovery server.

    Then, wait for your Electron instance to appear in the devices list and click inspect.

提交回复
热议问题