cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-6235) Make windows.console and exceptions out working on wp8
Date Tue, 15 Apr 2014 02:09:14 GMT

     [ https://issues.apache.org/jira/browse/CB-6235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jesse MacFadyen resolved CB-6235.
---------------------------------

    Resolution: Invalid

All console.log output is sent to Visual Studio's 'output' window

> 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)

Mime
View raw message