PhoneGap IOS 调试

Posted by wxianfeng Tue, 14 May 2013 04:07:00 GMT

phonegap ios 调试技巧, 目前几个我用过的:

1, chrome 有 ripple 模拟器插件, 但是会出现phonegap js api 不解释, 需要屏蔽掉

2, 利用 http://debug.phonegap.com/ 远程调试, 但是延时严重

3, 把 wenire 装到本地进行调试, 没有尝试.

4, 如果利用 浏览器调试, 可以判断 window.device 是否存在来屏蔽掉 phonegap js api

5, 模拟器和真机调试可以使用 safari web inspector

打开 safari -> preference -> advanced -> develop

最后附张模拟器调试的图, 可以实时调css, 还可以打js断点.

总结下来就是, 前期开发使用 浏览器, 后期细节调试使用 xcode 模拟器 或者真机 + safari web inspector 来调整.

This entry was posted on Tue, 14 May 2013 04:07:00 GMT and Posted in , . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.

Tags , ,


Trackbacks

Use the following link to trackback from your own site:
http://wxianfeng.com/trackbacks?article_id=292

Comments

  1. Avatar
    청문회 레전드 over {{count}} years ago:

    It’s amazing for me to have a website, which is good in favor of my experience.
    thanks admin

Leave a comment