V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
tianzhen
V2EX  ›  iDev

请问有办法用 Chrome 来 debug cordova iOS app 吗?

  •  
  •   tianzhen · 2016-04-06 10:10:44 +08:00 · 5325 次点击
    这是一个创建于 2932 天前的主题,其中的信息可能已经有所发展或是发生改变。
    接手一个 cordova 打包的 hybrid app , Xcode 在 simulator 中 build 好后,要 debug 只能用 safari ,之前一直都在用 Chrome , safari debug 功能好难用啊,不知道有没有办法用 Chrome 代替 safari 来 debug 吗?我搜了下好像没有找到方案,难道是不可能...
    7 条回复    2016-04-06 19:43:52 +08:00
    Wicheol
        1
    Wicheol  
       2016-04-06 10:53:38 +08:00
    用 Android 设备 debug 可以, chrome://inspect/#devices
    Wicheol
        2
    Wicheol  
       2016-04-06 10:54:56 +08:00
    看漏了标题, sorry ,无视我吧
    chenggiant
        3
    chenggiant  
       2016-04-06 11:22:05 +08:00 via iPhone   ❤️ 2
    Google 有个,但是用起来感觉不是很稳定...
    https://github.com/google/ios-webkit-debug-proxy
    xi_lin
        4
    xi_lin  
       2016-04-06 14:17:12 +08:00
    @chenggiant 感谢!很好用啊,终于可以用 chrome 不用 safari 了。。
    cyokvip
        5
    cyokvip  
       2016-04-06 15:19:57 +08:00
    @xi_lin 请问怎么使用啊,我输入 ios_webkit_debug_proxy 然后打开浏览器输入 localhost:9221 点我的设备,打开手机上已经打开的页面,再点就打不开了
    xi_lin
        6
    xi_lin  
       2016-04-06 19:36:42 +08:00   ❤️ 2
    @cyokvip 试试指定前端使用
    ios_webkit_debug_proxy -f chrome-devtools://devtools/bundled/inspector.html
    cyokvip
        7
    cyokvip  
       2016-04-06 19:43:52 +08:00 via iPhone
    @xi_lin 可以了,感谢
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1849 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:31 · PVG 00:31 · LAX 09:31 · JFK 12:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.