- Electron version:
  1.3.3
- Operating system:
  OSX El Capitan 10.11.6

The following code crashes Electron. The dev tools don't open, but the HTML element highlights like it is open.

``` javascript
selfBrowserWindow.webContents.openDevTools({mode: 'detach'})
selfBrowserWindow.inspectElement(rightClickPosition.x, rightClickPosition.y)
```

The reason I'm doing this is because I want to open the dev tools detached, then inspect. Calling inspectElement first will open the dev tools docked by default.

atom/browser/api/atom_api_web_contents.cc
#include "atom/browser/api/atom_api_web_contents.h"
#include <set>
#include <string>
#include "atom/browser/api/atom_api_debugger.h"
#include "atom/browser/api/atom_api_session.h"
#include "atom/browser/api/atom_api_window.h"
#include "atom/browser/atom_browser_client.h"
#include "atom/browser/atom_browser_context.h"
#include "atom/browser/atom_browser_main_parts.h"
#include "atom/browser/atom_security_state_model_client.h"
#include "atom/browser/lib/bluetooth_chooser.h"
#include "atom/browser/native_window.h"
#include "atom/browser/net/atom_network_delegate.h"
#include "atom/browser/osr/osr_output_device.h"
#include "atom/browser/osr/osr_web_contents_view.h"
#include "atom/browser/osr/osr_render_widget_host_view.h"
#include "atom/browser/ui/drag_util.h"
#include "atom/browser/web_contents_permission_helper.h"
#include "atom/browser/web_contents_preferences.h"
#include "atom/browser/web_view_guest_delegate.h"
#include "atom/common/api/api_messages.h"