如何使用移动浏览器调试JavaScript代码 [英] How to debug JavaScript code with mobile browsers
问题描述
我了解Firebug和主要的现代台式机浏览器的开发人员工具,但找不到在移动浏览器上调试JavaScript代码的任何方法.
I know about firebug and the developer tools for the major modern desktop browsers, but I can't find any way of debugging JavaScript code on mobile browsers.
我可以使用哪些高级技术在移动浏览器上调试代码?
What are some high level techniques I can use to debug code on mobile browsers?
推荐答案
Android为此提供了一个工具集: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3
Android provides a tool set for these purposes: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3
Apple采取类似的方式: https://developer.apple.com/safari/tools/
Apple does it a similar way: https://developer.apple.com/safari/tools/
教程: 查看全文