iOS6 - removed console log for IPad - how to use web inspector on windows?

前端 未结 8 2021
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 13:11

So iOS6 is out, horrah. Now, it appears as though Apple have removed the \'Developer Console\' that used to exist in Safari. Great, I hear a lot of people say - it was limit

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 13:42

    You can use window.onerror to debug errors without a console. Simply add this code to your HTML document in its own

    This will do so that whenever there is an error, the error message will be shown in an alert dialog box, which is visible in iOS Safari. It's important that the above code runs before the error you're trying to debug, and if you're debugging a syntax error, it's also important that it's in a separate

提交回复
热议问题