JavaScript Debugging Capabilities for UIWebView
Objective-C C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README first commit Jul 27, 2011
WebView+Debug.h Fixed stupid typo. May 15, 2013
WebView+Debug.m Allow remote debugging via WebInspector (iOS 5 only) Nov 17, 2011



UIWebView+Debug adds simple script debugging capabilities to Apple's UIWebView.


Simply add the two files to your Project.
#import "WebView+Debug.h"

Next adapt the header file to enable or disable parser call backs.

Make sure to not include this in your release build of the application as it uses private Frameworks.

The DEBUG defines should sort this out for you. If this code is left in, Apple will the application.

This little UIWebView Category was inspired by this Stack Overflow post:

Credits go to Robert Sanders and Kresimir Prcela for giving the right clues.
I then decided to take these two posts and merge them into one easy to use drop-in category.


Pablo Guillen

The software is licensed under the MIT License.