Add logs for debugging 17/215017/3
authorDongHyun Song <dh81.song@samsung.com>
Tue, 1 Oct 2019 02:34:56 +0000 (11:34 +0900)
committerDongHyun Song <dh81.song@samsung.com>
Wed, 16 Oct 2019 01:52:51 +0000 (10:52 +0900)
Add some logs for easy debugging

Change-Id: I9b17542ad97c0088fd25242c90c02853f141ec4a
Signed-off-by: DongHyun Song <dh81.song@samsung.com>
wrt_app/src/web_application.js

index 085239e..4087680 100755 (executable)
@@ -264,6 +264,7 @@ class WebApplication {
         if (this.preloadStatus === 'readyToShow' ||
             this.preloadStatus === 'preload' ||
             this.runningStatus === 'behind') {
+            console.log('WebApplication : suspendByStatus');
             console.log(`preloadStatus: ${this.preloadStatus}, runningStatus: ${this.runningStatus}`);
             // TODO : Need to care this situation and decide to pass the addon event emitter to suspend()
             this.suspend();
@@ -272,6 +273,7 @@ class WebApplication {
         }
     }
     showInspectorGuide() {
+        console.log('WebApplication : showInspectorGuide');
         this.showInspectorGuide = () => {}; // call once
         let message = this.debugPort.toString() +
             "\r\nFast RWI is used, [about:blank] is loaded fist instead of \r\n[" +
@@ -329,6 +331,7 @@ class WebApplication {
         this.windowList[this.windowList.length - 1].show();
     }
     finalize() {
+        console.log('WebApplication : finalize');
         this.inspectorSrc = '';
         wrt.cancelDialogs(this.mainWindow.webContents);
         if (this.debugPort) {