在 iPad 上调试 JavaScript 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7834407/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 03:46:40  来源:igfitidea点击:

Debug JavaScript errors on iPad

javascriptipaddebugging

提问by xus

Is there any way to debug a JavaScript page runing on iPad?

有没有办法调试在 iPad 上运行的 JavaScript 页面?

采纳答案by Rene Pot

Go to this location, and enable debug console.

转到此位置,并启用调试控制台。

iOS6:

iOS6:

Debug Console is gone. Use an alternative to get it to work. Such as Firebug Lite. Look at the related question here: iOS6 - removed console log for IPad - how to use web inspector on windows?

调试控制台不见了。使用替代方法使其工作。比如萤火虫精简版。在此处查看相关问题:iOS6 - 删除了 iPad 的控制台日志 - 如何在 Windows 上使用网络检查器?

iOS5:

iOS5:

Settings -> Safari -> Advanced -> Debug Console

Older:

较旧:

Settings -> Safari -> Developer -> Debug Console

回答by fedmich

If you want to get up and running fast. Just go sign up and add the tracking html codes from http://trackjs.comThe javascript errors shows up immediately then when I used on my iPad2.

如果您想快速启动并运行。只需注册并添加来自http://trackjs.com的跟踪 html 代码 当我在 iPad2 上使用时,javascript 错误立即出现。

And then you can just remove the tracking code later too if you decide not to track anymore errors.

然后,如果您决定不再跟踪错误,也可以稍后删除跟踪代码。

回答by Abbas Mousavi

You can also use this iPad app http://itunes.apple.com/us/app/idebug/id525956537?mt=8&ign-mpt=uo%3D2

你也可以使用这个 iPad 应用http://itunes.apple.com/us/app/idebug/id525956537?mt=8&ign-mpt=uo%3D2

this app loads firebug lite on your web page so you can debug javascript and css.

此应用程序会在您的网页上加载 firebug lite,以便您可以调试 javascript 和 css。

回答by Sven Malvik

Maybe firebug lite is something for you http://getfirebug.com/firebugliteIt is a bookmarklet.

也许 firebug lite 适合你http://getfirebug.com/firebuglite它是一个书签。