What are some methods to debug Javascript inside of a UIWebView?

后端 未结 8 1865
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 17:58

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

相关标签:
8条回答
  • 2020-11-28 19:00

    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.

    0 讨论(0)
  • 2020-11-28 19:00

    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 








    0 讨论(0)
提交回复
热议问题