Is their a debug console available for Ti.UI.WebView on iOS?

You must Login before you can answer or comment on any questions.

I've got a WebView in my app that is talking back and forth to my Titanium code, but apparently there's a syntax or other issue in the code running in the WebView's context. Is there a way to get a debug console for a Ti.UI.WebView like is available for Safari in iOS to troubleshoot bugs in that context?

I'm trying to avoid littering my WebView JS with lots of Ti.API.info() calls.

1 Answer

Hi James, webview i not the best idea. You can open your locale website with firefox or safari and start the webconsole to starts functions. example:

var wv = Ti.Ui.createWebView({url:'/html/index.html'});
wv.evalJS('setDatato();');
and you will track the problem then you can open index.html in safari and open web console. In console you can start 'setData()'.

In other cases it is an idea to fireEvents from web to Titanium.

webview i not the best idea.

Hope this helps.

Rainer

Your Answer

Think you can help? Login to answer this question!