66beta
V2EX  ›  微信

微信内置浏览器, Javascript 如何调试?只能 Alert?

  •  
  •   66beta · Jan 16, 2015 · 29837 views
    This topic created in 4206 days ago, the information mentioned may be changed or developed.
    具体来说是IOS版的微信

    没console好烦恼~
    Supplement 1  ·  Jan 16, 2015
    比较懒,选了 http://jsconsole.com/ 可以做一些基本调试了
    10 replies    2015-01-16 14:15:53 +08:00
    kingwrcy
        1
    kingwrcy  
       Jan 16, 2015   ❤️ 2
    learnshare
        2
    learnshare  
       Jan 16, 2015   ❤️ 1
    66beta
        3
    66beta  
    OP
       Jan 16, 2015
    @kingwrcy 页面在服务器上,开发是本地,weinre的脚本嵌入后也访问不到weinre客户端 T..T
    66beta
        4
    66beta  
    OP
       Jan 16, 2015
    @kingwrcy 因为接入公众号接口,所以在服务器上
    kingwrcy
        5
    kingwrcy  
       Jan 16, 2015   ❤️ 1
    @66beta

    把weinre 架设在公网,然后在服务器上的页面插入脚本,不行吗?

    不能插入脚本的话,weinre还提供了 bookmarklet
    fising
        6
    fising  
       Jan 16, 2015
    firefox lite 可以吗
    fising
        7
    fising  
       Jan 16, 2015
    firebug Lite
    ushuz
        8
    ushuz  
       Jan 16, 2015   ❤️ 1
    poke707
        9
    poke707  
       Jan 16, 2015   ❤️ 1
    android的话console还是会print到logcat里面,具体tag要看机型,例如genymoton是Web Console
    66beta
        10
    66beta  
    OP
       Jan 16, 2015
    @ushuz 这个好,懒人必备,谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1031 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 18:50 · PVG 02:50 · LAX 11:50 · JFK 14:50
    ♥ Do have faith in what you're doing.