How to debug electron production binaries

前端 未结 6 1369
一个人的身影
一个人的身影 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:06

    Here's what worked for me on Mac.

    1. In terminal type lldb path/to/build.app
    2. In the opened debugger type run --remote-debugging-port=8315. It should open a window of your app.
    3. Open Chrome at http://localhost:8315/
    4. Click on the name of the app. For example, Webpack App.
    5. If you don't see anything in the opened tab, focus on the window of your app.

提交回复
热议问题