Malte Legenhausen created CB-6235:
-------------------------------------
Summary: Make windows.console and exceptions out working on wp8
Key: CB-6235
URL: https://issues.apache.org/jira/browse/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
http://sgrebnov.blogspot.de/2012/12/debugging-cordova-apps-on-wp8.html
--
This message was sent by Atlassian JIRA
(v6.2#6252)