Android remote debugging for Phonegap app does not work

后端 未结 7 1799
借酒劲吻你
借酒劲吻你 2021-02-02 15:08

Hi I am trying to debug my phonegap app on my device via Chrome I have followed all the steps and my phone is recognized by adb devices command,

Then I go to chrome://ins

7条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 15:25

    If you're using Phonegap Build, add the following to your config.xml to be able to inspect the webview in the Chrome dev console.

    First, make sure your widget tag contains xmlns:android="http://schemas.android.com/apk/res/android"

    
    

    Then add the following

    
         
    
    

    It works for me on Nexus 5, Phonegap 3.7.0.

    
    

    Source: https://www.genuitec.com/products/gapdebug/learning-center/configuration/

提交回复
热议问题