Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-2620

console.log prints only the first argument on Xcode's console for iOS cordova apps

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Activity

          People

            agrieve Andrew Grieve
            cnandreu Carlos Andreu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified