- Electron version: 1.3.0
- Operating system: OS X 10.11.6

I'm trying to use VSCode to debug Electron's main process.

So I cloned https://github.com/electron/electron-quick-start
Setup VSCode debugging in `.vscode/launch.json`.

```
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Attach",
      "type": "node",
      "request": "attach",
      "port": 5858,
      "sourceMaps": false
    }
  ]
```

Now I run `./node_modules/.bin/electron --debug-brk=5858 main.js`, then using VSCode to attach to the process.
### main.js (simplified from `electron/electron-quick-start`):

```
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow // BREAKPOINT

let mainWindow

function createWindow () {
  mainWindow = new BrowserWindow({width: 800, height: 600})  // BREAKPOINT

  mainWindow.loadURL(`file://${__dirname}/index.html`)

  mainWindow.on('closed', function () {
    mainWindow = null
  })
}

app.on('ready', createWindow)
app.on('window-all-closed', function () {
  if (process.platform !== 'darwin') { app.quit() }
})

app.on('activate', function () {
  if (mainWindow === null) { createWindow() }
})
```

VSCode attaches correctly, but it misses the two breakpoints in the initial run.
However, if I then close the Renderer window, and click the dock icon again, I'm able to hit the breakpoint in `createWindow`.

I'm expecting with `--debug-brk=5858`, it should break on this line:
`const electron = require('electron')`
And then after attaching the process, I should be able to step through from there.
But Electron just goes on to create the Renderer window.
Any idea how I can get it to stop at the first line of script, as the documentation says?

<img width="851" alt="screen shot 2016-07-25 at 11 17 09 pm" src="https://cloud.githubusercontent.com/assets/4033249/17127918/f3a13696-52bd-11e6-8e99-029cd23dae5b.png">

atom/common/node_bindings.cc
#include "atom/common/node_bindings.h"
#include <string>
#include <vector>
#include "atom/common/api/event_emitter_caller.h"
#include "atom/common/api/locker.h"
#include "atom/common/atom_command_line.h"
#include "atom/common/native_mate_converters/file_path_converter.h"
#include "base/command_line.h"
#include "base/base_paths.h"
#include "base/environment.h"
#include "base/files/file_path.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/common/content_paths.h"
#include "native_mate/dictionary.h"
#include "atom/common/node_includes.h"
using content::BrowserThread;
#define REFERENCE_MODULE(name) \
  extern "C" void _register_ ## name(void); \
  void (*fp_register_ ## name)(void) = _register_ ## name
REFERENCE_MODULE(atom_browser_app);
REFERENCE_MODULE(atom_browser_auto_updater);
REFERENCE_MODULE(atom_browser_content_tracing);
REFERENCE_MODULE(atom_browser_dialog);
REFERENCE_MODULE(atom_browser_debugger);
REFERENCE_MODULE(atom_browser_desktop_capturer);
REFERENCE_MODULE(atom_browser_download_item);