Electron app not closing after debugging

I've set up my run/debug configuration for my Electron app as described here:


I'm running on Windows, so using "electron.cmd" for the Node interpreter.

Runs OK...except when I close the app I get the following message in the WebStorm console tab:

    Terminate batch job (Y/N)? ^C

When I try to run the app again, it says the app is stuff running (and lets me close it and start the new instance).

Is there a way to have the app end fully in webstorm when I close it?




Comment actions Permalink

All "electron.cmd" does is choose which node.exe and which electron/cli.js to execute. You can just do it manually:

  • Set node interpreter to node.exe
  • Set node parameters to "node_modules\electron\cli.js ."

Please sign in to leave a comment.