From 0f237017aefbd1e4c56b1def9bd0d8310e3d894d Mon Sep 17 00:00:00 2001 From: fmsuvM Date: Sat, 22 Sep 2018 06:34:13 +0900 Subject: [PATCH] Feat: add command line option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Renderer processをdebugするために `'remote-debugging-port`を追加してportを指定 --- src/main/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/index.js b/src/main/index.js index cfa3290..cd66a1c 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -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...');