<!--
Thanks for opening an issue! A few things to keep in mind:

- The issue tracker is only for bugs and feature requests.
- Before reporting a bug, please try reproducing your issue against
  the latest version of Electron.
- If you need general advice, join our Slack: http://atom-slack.herokuapp.com
-->

* Electron version: 1.7.0
* Operating system: macOS

### Expected behavior
Electron works with `--debug` or `-debug` argument

<!-- What do you think should happen? -->

### Actual behavior
Electron won't run with arguments above.

<!-- What actually happens? -->

### How to reproduce

I've tried the standalone .app and the npm modules:

- for standalone .app it shows an error and returns a non-zero
(with "IOVARendererID property not found" the welcome window appears and I've manually close it)
![image](https://cloud.githubusercontent.com/assets/3816900/25955449/e4d09a72-369b-11e7-894b-415231293022.png)

- for npm module it just won't start and no error returns
![image](https://cloud.githubusercontent.com/assets/3816900/25955695/84b36dee-369c-11e7-9d19-6014f13d9a50.png)


I can confirm the `--debug` works with previous versions including 1.6.9 beta

<!-- 

Your best chance of getting this bug looked at quickly is to provide a REPOSITORY that can be cloned and run.

You can fork https://github.com/electron/electron-quick-start and include a link to the branch with your changes.

If you provide a URL, please list the commands required to clone/setup/run your repo e.g.

  $ git clone $YOUR_URL -b $BRANCH
  $ npm install
  $ npm start || electron .

-->

atom/app/node_main.cc
#if defined(OS_WIN)
    process.SetMethod("log", &AtomBindings::Log);
#endif
    process.SetMethod("crash", &AtomBindings::Crash);
    
    auto reporter = mate::Dictionary::CreateEmpty(gin_env.isolate());
    reporter.SetMethod("start", &crash_reporter::CrashReporter::StartInstance);
    process.Set("crashReporter", reporter);
    node::LoadEnvironment(env);
    bool more;
    do {
      more = uv_run(env->event_loop(), UV_RUN_ONCE);
      if (more == false) {
        node::EmitBeforeExit(env);
        
        
        more = uv_loop_alive(env->event_loop());
        if (uv_run(env->event_loop(), UV_RUN_NOWAIT) != 0)
          more = true;
      }
    } while (more == true);
    exit_code = node::EmitExit(env);
    node::RunAtExit(env);
    node::FreeEnvironment(env);
  }
  v8::V8::Dispose();
  return exit_code;
}
}