cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malte Legenhausen (JIRA)" <>
Subject [jira] [Created] (CB-6235) Make windows.console and exceptions out working on wp8
Date Wed, 12 Mar 2014 09:56:43 GMT
Malte Legenhausen created CB-6235:

             Summary: Make windows.console and exceptions out working on wp8
                 Key: CB-6235
             Project: Apache Cordova
          Issue Type: Improvement
          Components: WP8
    Affects Versions: 3.4.0
         Environment: Windows 8
Visual Studio Express for Windows Phone 2012
Cordova 3.4.0
            Reporter: Malte Legenhausen
            Assignee: Jesse MacFadyen

When running my cordova application in the windows phone simulator via visual studio you get
no console.log and exception output cause console.log gets replaced by an noop function and
no window.onerror handler is defined.

Better would it be to replace it by

window.console = {
  log: function (str) { window.external.Notify(str); }

window.onerror = function (e) {
  console.log("window.onerror ::" + JSON.stringify(e));

You get not line numbers out of this but this helps very much.

I got this improvements from

This message was sent by Atlassian JIRA

View raw message