cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Mueller (JIRA)" <>
Subject [jira] [Commented] (CB-1585) console.debug, are undefined
Date Thu, 04 Oct 2012 18:43:47 GMT


Patrick Mueller commented on CB-1585:

Here's a better view of the patch:

Coupla things:

- the wording in a couple of places references warn()/debug(), but I think this bug correctly
identifies the missing methods as info()/debug(), as we already have log(), warn() and error().

- mucking with the DebugConsole.xxx_LEVEL constants would really require changing the natives
as well, and I don't think there is any functional reason to do so.  This particular module
has more function than most of the
consoles out there - eg, setLevel(), which I think we want to drop, because no one needs it.
 There's another bug out there regarding using a superset of Firebug/WebKit/node "console"
methods, which is a better, more portable solution.

So, easiest way to do this is to just add some new origConsole_XXX vars here:

and then create new DebugConsole.prototype.XXX methods here:

and have those implementations call the original versions, then DebugConsole.prototype.log()

I can do this, or you can.  If you want to, I'd want a pull request at the end, and to have
you get a signed CLA on file - SEE FIRST ITEM ON THIS WIKI PAGE -

> console.debug, are undefined
> -----------------------------------------
>                 Key: CB-1585
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 2.1.0
>         Environment:
>            Reporter: Jeffrey Knight
>            Assignee: Filip Maj
>            Priority: Critical
>              Labels: javascript
> cordova-2.1.0.js 
> Issue: Web app works as expected in browser. Firebug shows console.debug +
messages. Drop app into phonegap and it does not work.
> Cause: console.debug/info are not defined.
> Fix: add debug+info protypes to 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:

View raw message