cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (JIRA)" <>
Subject [jira] [Commented] (CB-12185) problem with messageParts[0] = null
Date Fri, 25 Nov 2016 18:41:58 GMT


Patrick Mueller commented on CB-12185:

Sounds like perhaps {{Console.log()}} was invoked, but should have been {{Console.log("")}}.

Also, I always ask folks now if they *REALLY* need to use weinre, since native debugging is
supported on so many platforms these days.  Check the yellow box on the weinre home page for
other options.

> problem with messageParts[0] = null
> -----------------------------------
>                 Key: CB-12185
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: Windows7 debugging angular2 project in ipad.
>            Reporter: Clara
>            Assignee: Patrick Mueller
>              Labels: easyfix
> I had a problem trying to understand why my program is failing. When weinre tries to
show me the error it fails, because MessageParts length is 0 or first element is null
> Line:
> {code:javascript}
> Console.prototype._generic = function(level, messageParts) {
> var message, messagePart, parameters, payload, _i, _len;
> message = messageParts[0].toString(); //<-- length 0 I don't know why but in my case
is 0.
> parameters = [];
> {code}
> I fixed it with a null verification (messageParts[0]==null -> "no message") and now
I can see my real error. Here is the difference: [ImageLink|]

> Files where I found the code: *Console.amd.js* and *target-script-min.js*
> P.D: I hope the version is correct. I looked at package.json of weinre (I downloaded
it via npm) and it is written:  
> "_id": "weinre@2.0.0-pre-I0Z7U9OV",

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message