[
https://issues.apache.org/jira/browse/CB-612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285648#comment-13285648
]
Patrick Mueller commented on CB-612:
------------------------------------
I'm mid-way through getting a better console into Cordova.
The current plan, for iOS, is to implement a console object that both delegates
to the original console, and writes to the new Logger plugin. With the
sprintf() style expansion. I may be able to squeeze this in for 1.8.
There are some additional plans, if you check the related bugs, on other
platforms.
Sorry about the pull requests - there's some magic whereby an email will show
up in our list for pull requests, but that's the extent of the magic. We can't
actually accept them, and the only thing to do - eventually - is for the
submitter to close them. I either missed the pull request on the list, or it
never made it to the list (broken magic). In any case, I think I have this
functionality in the base at this point, so don't see the need to pull the
commit.
re: the unsupported remote inspector with the iOS 5.x simulator - I think you
will find - but I'm not 100% sure - that the console just simply does not work
there. There's a few other things that don't work as well. Even once we have
the new console going (and delegating to the original console), it's STILL not
going to show up in the remote web inspector.
> Add support for native remoteInspector logging
> ----------------------------------------------
>
> Key: CB-612
> URL: https://issues.apache.org/jira/browse/CB-612
> Project: Apache Cordova
> Issue Type: Sub-task
> Components: iOS
> Reporter: Olivier Louvignes
> Assignee: Patrick Mueller
> Labels: debugging, ios
>
> Currently, when using the awesome remote debugger provided by apple
> (connecting on localhost:9999 with safari) with :
> // enable remote debugging
> #if TARGET_IPHONE_SIMULATOR
> [NSClassFromString(@"WebView") _enableRemoteInspector];
> #endif
> I do not get any console log/warn/error output. I guess it is caused by the
> Xcode logging adaptater.
> The remote webinspector is really superior to Weinre currently as it does
> provide realtime dom inspection (weinre only displays initial dom, not what
> was built by Sencha Touch for instance).
> Also I've seen that you have made some progress on error tracing (CB-535),
> this would be also awesome as it is a really major issue. Since playing with
> api's that can't be debugged via a desktop Webkit is a real nightmare today.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira