devlights
4/5/2016 - 4:35 AM

WindowsでIntellij IdeaでElectronアプリをデバッグする設定

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