Skip to content

Commit

Permalink
Feat: add command line option
Browse files Browse the repository at this point in the history
Renderer processをdebugするために
`'remote-debugging-port`を追加してportを指定
  • Loading branch information
tkdsym2 committed Sep 21, 2018
1 parent 71aa12b commit 0f23701
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const{ autoUpdater } = require('electron-updater');
const isDev = require('electron-is-dev');
const log = require('electron-log');

app.commandLine.appendSwitch('remote-debugging-port', 9223);

autoUpdater.logger = log;
autoUpdater.logger.transports.file.level = 'info';
log.info('App starting...');
Expand Down

0 comments on commit 0f23701

Please sign in to comment.