From f43930768bda5dbb6244b8471474b963e4739251 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Mon, 23 Dec 2013 21:16:59 +0000 Subject: [PATCH] experimental code: try/catch block around code in boot - to help debug iitc startup issues --- code/boot.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/boot.js b/code/boot.js index 50258b5f..7a4e76be 100644 --- a/code/boot.js +++ b/code/boot.js @@ -505,6 +505,7 @@ window.setupLayerChooserApi = function() { // BOOTING /////////////////////////////////////////////////////////// function boot() { + try { //EXPERIMENTAL TEST window.debug.console.overwriteNativeIfRequired(); console.log('loading done, booting. Built: @@BUILDDATE@@'); @@ -583,6 +584,13 @@ function boot() { android.bootFinished(); } + //EXPERIMENTAL TEST + } catch(e) { + console.log('Exception caught in IITC boot function - will fail to start'); + console.log(e); + debugger; + throw e; + } }