debug javascript in android emulator with phonegap

前端 未结 16 2098
抹茶落季
抹茶落季 2021-01-30 02:45

I am new to phonegap and android development. May I know how can I debug javascript error on the emulator? I have heard about ADB may I know how can I use and install it on wind

16条回答
  •  天命终不由人
    2021-01-30 03:51

    I solved it easily on two steps.

    Change the level of logging

    In config.xml add this line

        
    

    Run the cordova Log

    It's a bat file that you can just run and track all the log messages go to your phonegap project and navigate to \platforms\android\cordova then open log.bat you can now emulate your application using the command line

    cordova emulate
    

    and the log will be shown in the cmd which will be pop-uped when you open log.bat

提交回复
热议问题