You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Jesse MacFadyen (JIRA)" <ji...@apache.org> on 2012/09/07 02:55:09 UTC

[jira] [Updated] (CB-1364) Errors not logged currently - use window.onerror in templates/cordova.js to expose them

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

Jesse MacFadyen updated CB-1364:
--------------------------------

      Component/s:     (was: App Hello World)
    Fix Version/s: 2.1.0
    
> Errors not logged currently - use window.onerror in templates/cordova.js to expose them
> ---------------------------------------------------------------------------------------
>
>                 Key: CB-1364
>                 URL: https://issues.apache.org/jira/browse/CB-1364
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: WP7
>    Affects Versions: 2.0.0
>         Environment: Visual studio 2010 Express for Windows Phone, WP7 emulator
>            Reporter: Ville M. Vainio
>            Assignee: Jesse MacFadyen
>             Fix For: 2.1.0
>
>
> Currently, you don't get any information on javascript errors (trying to access undefined attributes, etc).
> At least on WP7 version of the phonegap, window.onerror works and gives you useful information. I ran this and started to get my errors logged properly:
>         window.onerror = function() {
>          console.log ("Error: " + JSON.stringify(arguments));         
>         }
> Something like this should come out of the box, either in cordova.js or in the quickstart template. It's not obvious to most developers that something like window.onerror is even available, since most are used to getting this information in web inspector / firebug console.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira