[ 
https://issues.apache.org/jira/browse/CB-3959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690133#comment-13690133
 ] 

Olivier Louvignes edited comment on CB-3959 at 6/21/13 8:36 AM:
----------------------------------------------------------------

As of 2.7.0

console.warn('in') --> Xcode

console.useConsole(true)
true

console.warn('in')
RangeError: Maximum call stack size exceeded.
                
      was (Author: mgcrea):
    In 2.7.0

console.warn('in') --> Xcode

console.useConsole(true)
true

console.warn('in')
RangeError: Maximum call stack size exceeded.
                  
> Proper way to disable XCode logger highjack?
> --------------------------------------------
>
>                 Key: CB-3959
>                 URL: https://issues.apache.org/jira/browse/CB-3959
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Olivier Louvignes
>            Assignee: Shazron Abdullah
>              Labels: log
>
> 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

--
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

Reply via email to