You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/03/05 20:38:12 UTC
[jira] [Resolved] (CB-2620) console.log prints only the first
argument on Xcode's console for iOS cordova apps
[ https://issues.apache.org/jira/browse/CB-2620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-2620.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.6.0
Assignee: Andrew Grieve (was: Shazron Abdullah)
Pull request integrated:
https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=d53601e5486f888c60194b56e039863a0da61da1
Note that this is still broken on other platforms :(.
> console.log prints only the first argument on Xcode's console for iOS cordova apps
> ----------------------------------------------------------------------------------
>
> Key: CB-2620
> URL: https://issues.apache.org/jira/browse/CB-2620
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Environment: iOS
> Reporter: Carlos Andreu
> Assignee: Andrew Grieve
> Priority: Minor
> Labels: console, cordova, ios, xcode
> Fix For: 2.6.0
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> On most (all?) browsers, this is what happens:
> console.log('Hello', 'world', {hello: 'world'}, [1,2,3], 1, 2, true, undefined, null);
> //Output Chrome: Hello world Object {hello: "world"} [1, 2, 3] 1 2 true undefined null
> //Output Firefox: Hello world Object { hello= "world" } [ 1 , 2 , 3 ] 1 2 true undefined null
> //Output Safari: Hello world Object [1, 2, 3] 1 2 true undefined null
> However, on Xcode's console, the output is:
> [LOG] Hello
> It only prints the first argument. This is unexpected behavior from web developers trying to add log messages to their cordova iOS apps.
--
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