Demo of how to debug code inside a mobile webview
trigger.io
trigger.io
[NSClassFromString(@"WebView") _enableRemoteInspector];
2) Start simulator3) Visit http://localhost:9999 in Safari for a full-featured WebKit debugger.
I like competition but I'm not really sold on the advantages of this platform over its one-line, built-in alternative.
Also, I've never looked into it, but is there any comparable built-in debugging method for Android?
objc_msgSend(NSClassFromString(@"UIWebView"), @selector(_enableRemoteInspector));You hopefully get the gist from the audio in the meantime, or can read up in the blog post or at https://trigger.io/catalyst
http://lexandera.com/aardwolf/
It works on iOS, Android, WindowsPhone7 and BlackBerry. It's not very polished, though, since I stopped working on mobile projects and don't need it anymore.
It's only fairly recently that useful debugging tools like this and the built-in iOS 5 stuff have emerged.
By hosting Weinre we've tried to make it simpler than making sense of these instructions for example: http://www.webkit.org/blog/1875/announcing-remote-debugging-...
We've added a tab to let you track calls out to the native bridge, see error / success codes and the response. Pretty useful when you're working on hybrid apps.