移动网站调试 [英] Mobile Website Debugging

查看:140
本文介绍了移动网站调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Firefox 的普通桌面浏览器中运行的网站可以使用 Firebug 进行调试。


Similary,是否有任何工具可以使用调试在 Fennec,Opera Mobile 等浏览器上运行的移动版网站等等?



解决方案

在大多数情况下,最好使用您最喜欢的浏览器并尝试以模拟移动设备的行为。您可以使用Firefox附加组件,如:




  • 用户代理切换器:伪造不同的移动用户代理(已经附带少数移动代理预定义)

  • 修改标题:假装有时需要的其他http标头(x-wap-profile,x-msisdn,Accept)



    • 当然你最喜欢的附加组件用于调试和开发


      A website running in a normal desktop browser like Firefox can be debugged with Firebug.

      Similary, are there any tools which can be used to debug Mobile versions of websites running on browsers like Fennec, Opera Mobile, etc.?

      解决方案

      In most cases it is better to use your favorite browser and try to mimic the behaviour of a mobile Device. You can use Firefox Add-Ons like:

      • User Agent Switcher: to fake different mobile User-Agents (already comes with e few mobile Agents predefined)
      • Modify Headers: to fake some additional http-Headers that are sometimes needed (x-wap-profile, x-msisdn, Accept)

      And of course your favorite Add-Ons for Debugging and Development

      这篇关于移动网站调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆