diff --git a/src/App.js b/src/App.js index 726133ef..88c43ef1 100644 --- a/src/App.js +++ b/src/App.js @@ -82,6 +82,7 @@ export default class App extends Base { } async _init() { + console.log("Debug Log--Line 85 file App.js") Settings.setLogLevel('DEBUG'); eventEmitter.on('showToast', (message, state, tagName, color) => { this.showToast(message, state, tagName, color); @@ -127,11 +128,13 @@ export default class App extends Base { process.env.PLATFORM = CONSTANTS.DEFAULT; } // Get values from Parameter.initialization - Start + console.log("Debug Log--Line 131 file App.js") try { await this.getParameterInitializationValues(); } catch (e) { logger.error(JSON.stringify(e), 'init'); } + console.log("Debug Log--Line 137 file App.js") // Get values from Parameter.initialization - End if (mfValue) { // check whether the mf value passed in url is matches @@ -161,6 +164,7 @@ export default class App extends Base { process.env.APPID = res; this._setState('LoadingState'); }); + console.log("Debug Log--Line 167 file App.js") } async pubSubListener() { @@ -378,11 +382,13 @@ export default class App extends Base { this.debug = !this.debug; } async getParameterInitializationValues() { + console.log("Debug Log--Line 385 file App.js") await handleAsyncFunction(FireboltExampleInvoker.get().invoke(CONSTANTS.CORE.toLowerCase(), 'Parameters.initialization', [], [])).then((res) => { console.log('Response of Initialization :: ', res); if (res != undefined) { const action = res[0].discovery.navigateTo.action; if (action == 'search') { + console.log("Debug Log--Line 391 file App.js") let query = res[0].discovery.navigateTo.data.query; let lifecycle_validationString; query = JSON.parse(query); @@ -427,6 +433,7 @@ export default class App extends Base { process.env.PUB_SUB_URL = query.params.pubSubUrl; } + console.log("Debug Log--Line 436 file App.js") if (query.task) { setTimeout(() => { const intentReader = new IntentReader(); diff --git a/src/LifeCycleHistory.js b/src/LifeCycleHistory.js index c16d1dbd..9ac16a8d 100644 --- a/src/LifeCycleHistory.js +++ b/src/LifeCycleHistory.js @@ -46,6 +46,7 @@ export default class LifecycleHistory { } async init(appInstance = null) { + console.log("Debug Log--Line 137 file LifecycleHistory.js") lifecycleValidation = process.env.LIFECYCLE_VALIDATION; await Lifecycle.listen('inactive', this._recordHistory.bind(this, 'Lifecycle.onInactive')); await Lifecycle.listen('foreground', this._recordHistory.bind(this, 'Lifecycle.onForeground')); @@ -75,8 +76,10 @@ export default class LifecycleHistory { Lifecycle.finished(); } }); + console.log("Debug Log--Line 79 file LifecycleHistory.js") if (lifecycleValidation != 'true') { + console.log("Debug Log--Line 82 file LifecycleHistory.js") /* Require the lifecycle plugins directory, which returns an object where each key is a file name in the directory and each value is the default export of that file. @@ -95,6 +98,7 @@ export default class LifecycleHistory { appLifecycle.ready(); } else { // If no such lifecycle exists, call the default 'Lifecycle.ready()' function. + console.log("Debug Log--Line 101 file LifecycleHistory.js") Lifecycle.ready(); } } diff --git a/src/index.js b/src/index.js index 305438c1..3e446676 100644 --- a/src/index.js +++ b/src/index.js @@ -20,6 +20,7 @@ import App from './App'; import Window from './Window'; window.onload = function () { + console.log("Debug Log--Line 23 file src/index.js") const systemui = new URLSearchParams(window.location.search).get('systemui'); process.env.SYSTEMUI = systemui; // If systemui is true setting background color to purple. @@ -48,5 +49,6 @@ window.onload = function () { }; const app = new App(options); + console.log("Debug Log--Line 52 file src/index.js") document.body.appendChild(app.stage.getCanvas()); };