Permalink
Browse files

make desktop app debuggable from chrome using dev tools

  • Loading branch information...
futurefear committed Jul 19, 2015
1 parent a701389 commit 5b4d254ca2ab9824abebcb00a5e0a4731283701d
Showing with 4 additions and 0 deletions.
  1. +4 −0 index.js
View
@@ -192,6 +192,10 @@ app.on('activate-with-no-open-windows', function () {
return false;
});
// Enable debugging from browser: visit http://127.0.0.1:8315 to use web debugging tools
app.commandLine.appendSwitch('remote-debugging-port', '8315');
app.commandLine.appendSwitch('host-rules', 'MAP * 127.0.0.1');
// Emitted when Electron has done all of the initialization.
app.on('ready', function () {
start(function (url, nodeChild, mongoChild) {

0 comments on commit 5b4d254

Please sign in to comment.