[Solved] Can not run electron in debug mode, please help


hello guys,
i’m learnning electron, i want to run electron in debug mode so i can debug the main javascript which running in the main process.
i’m using win10 x64 pro, install electron(v0.31.0) in global(%appdata%\npm), i can run electron with default app in no-debug mode, but if i run it in debug mode with command line:

cd %appdata%\npm\node_modules\electron-prebuilt\dist
electron --debug

electron shows nothing and exit quickly even i can’t see the process listed in windows task manager.
how could i do to let electron run in debug mode? please help~


this issue has been fixed with the newest electron version 0.31.1