electron-userland / electron-compile

DEPRECATED: Electron supporting package to compile JS and CSS in Electron applications
1.01k stars 99 forks source link

Can't start application when --debug is specified on the command line #238

Closed Gum-Joe closed 7 years ago

Gum-Joe commented 7 years ago

I've been recently attempting to debug my electron app (made with electron-forge) with vscode. However, I have found that any attempt at using the --debug argument on the command line and in vscode (or any variation, for example: --debug-brk=xxx) causes the app to not run at all (no errors):

PS D:\Users\Kishan\Documents\Projects\tara> ./node_modules/.bin/electron src/renderer/index.js --debug

PS D:\Users\Kishan\Documents\Projects\tara>

It is also an issue as the --debug switch is used to debug my app.

I've tried:

You can find my code at https://github.com/Gum-Joe/tara in the src/ directory.

MarshallOfSound commented 7 years ago

This is an Electron issue that has been handled and will be fixed in the next release 👍

https://github.com/electron/electron/issues/9434

Gum-Joe commented 7 years ago

Is there a way to install the beta to get it today? npm i electron-compile@next perhaps? Or will I have to wait until the next release?

Thanks for the help 👍.

MarshallOfSound commented 7 years ago

@Gum-Joe This isn't an electron-compile issue, it's an electron issue, you will either have to downgrade your Electron version or wait for the next electron version 👍