Is there a way to debug JavaScript in the iPhone/iOS Safari browser?

前端 未结 5 1703
闹比i
闹比i 2020-12-13 09:15

I have a strange behavior on the iPhone browser. Is there a tool to debug the JavaScript of the iPhone browser?

I\'m hoping there\'s something more advanced than s

5条回答
  •  余生分开走
    2020-12-13 09:49

    I faced a simple use case in which I only needed to test my code on a Safari's JS engine (Merely debugging, simply running it and consuming traces).

    To that end I used Epiphany web browser, which is both free and uses JavaScriptCore JS engine which is also used by Safari. Epiphany isn't provided with developer tools, so I used http://jsconsole.com/ to view my traces.

    Though it is a thin solution, it helped me find a line which worked on Chrome but didn't on Safari.

提交回复
热议问题