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

Proper way to disable Xcode logger highjack?

    XMLWordPrintableJSON

Details

    Description

      I'm using new iOS6 webkit remote debugger tools. However, nothing is ever logged there as Cordova highjack the console object to log stuff in XCode. I've looked through the source but never really succeeded to get back console logging in a clean way (as I've seen in 2.7.0, there might be a bug in the JS as it is supposed to log both to Xcode & window but the window logger used is not working at all).

      I've found a way using:

      <script>window._console = window.console;</script>
      <!-- build:js scripts/libs.js -->
      <script src="components/cordova/cordova.ios.js"></script>

      However errors are still caught by Xcode, so I won't get a clean trace in the webkit inspector.

      Would love some help/documentation on this point

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              mgcrea Olivier Louvignes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: