Skip to content

Instantly share code, notes, and snippets.

@devlights
Last active January 13, 2023 12:04
Show Gist options
  • Save devlights/4a41680db4e11cd8b8e1524db89c00d1 to your computer and use it in GitHub Desktop.
Save devlights/4a41680db4e11cd8b8e1524db89c00d1 to your computer and use it in GitHub Desktop.
WindowsでIntellij IdeaでElectronアプリをデバッグする設定

Run/Debug Configurationの設定

  • Node Interpreterの値をプロジェクト内のnode_modulesの下のbinの下のelectron.cmdにする
  • Node Parametersの値を . にする
  • Working Directoryの値はそのまま
  • JavaScript fileの値はそのまま
  • Application parametersの値は mode-dev;devtools=true にする

後は、ブレークポイント貼っておいたらデバッグ出来る。

参考リンク

http://stackoverflow.com/questions/32348540/how-to-debug-electron-applications-with-intellij-or-webstorm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment