I\'m trying to figure out why something with Javascript isn\'t working inside of a UIWebView. To my knowledge, there is no way to set a breakpoint inside of XCode for a js f
This query tops google, so worth linking to the remoteInspector hidden in iOS5 - by far the best way found so far to debug your UIWebViews - just conditional compile out before you send to Apple.
I get the awesome way to debug UIWebView Or SFSafariViewController.
I hope It will Help.
Step 1: Open Safari VC In Your Mac (hahaha Don't make your face, If I am saying in your Macbook just follow this my steps)
Step2: Go at Safari preferences And Click on Advance. You will Get this setting on your MacBook Screen.
Now enable the Show to develop menu in menu bar. Now Your All work is done. Are you thinking I am kidding :P :P no man...
Step3: Run your application in Device or Simulator. (Don’t Think Just run ) And go in your application where you are opening your Webview or SFSafariViewController. Till now you did not understand I know. Be cool and see my next step.
Step4: Open Safari In your MacBook and Click on Develop Option from the Menu bar. Did you get something your MacBook, iPad/ iPhone is Displaying Right?????
Step5: Its Done. click your device and click on URL New popup will come out like This.
Step6: what are you looking now its over here all the steps.
Now debug your Webpage on this console. Be happy and enjoy your day while doing coding With a cup of tea or Coffee.
IMP: Don't forget to enable See Below Image