Cannot debug the main process


Hello everyone,

I’m new and still getting started to electron, I have trouble to connect node-inspector so that I can debug the main process.

I have read about this guide:
Debugging the Main Process

I have recompiled v8 modules and node-inspector starts fine.

Problem is that electron does not pause to wait debugger connect when passing in --debug or --debug-brk switch. It seems that the switches are simply ignored.

The terminal command I use to start electron is
./node_modules/.bin/electron ./app/main.js --debug-brk=5858

I’m using mac OS X El Capitan (10.11.6) and Electron 1.3.4, any ideas?