Created attachment 206416 [details] A tar archive of a small Xcode iOS project [The components involved are WebKit nightly build 152535 Xcode Version 4.6.3 (4H1503) iOS Simulator Version 6.0 (369.2) OS X 10.8.4] The attached project creates a UIWebView and populates it with a toy HTML document. It then inserts into that document's head a <script> tag whose "src" attribute references a small JavaScript file JS.js. Build and execute it under Xcode with the iPhone Simulator as device. It advises you to attach the Web page to Web Inspector. The HTML document and the JavaScript script duly become visible in Web Inspector. To continue execution, enter "init()" in the Web Inspector console command line. The app continues by using [UIWebView stringByEvaluatingJavaScriptFromString] to invoke fcn(), a function created by function init(). This causes a JavaScript alert ("Inside fcn()") to appear. If you dismiss this alert, execution continues normally with an alert message from the App ("fcn() call returned..."). However, if you set a breakpoint on line 8 of the script ('return "fcn result";'), either before entering init() or before dismissing the "Inside fcn()" alert, execution stops at this breakpoint in Web Inspector, but then nothing more can be done: Web Inspector doesn't respond to any of the buttons for continuing execution.
<rdar://problem/14408486>