Skip to content

Instantly share code, notes, and snippets.

@strogonoff
Last active July 2, 2020 04:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strogonoff/2d457d0c1681d9dedd6021e2368637c6 to your computer and use it in GitHub Desktop.
Save strogonoff/2d457d0c1681d9dedd6021e2368637c6 to your computer and use it in GitHub Desktop.
Debug a production-packaged Electron app on macOS

In Terminal, run:

me@me:<some-app>$ ./dist/mac/<product identifier>.app/Contents/MacOS/<product identifier> --remote-debugging-port=8315
  • stdout will stream your logs and may at least give a glimpse as to where the error is thrown.
  • Open http://127.0.0.1:8315 in Chrome for some useful stuff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment