debug javascript in android emulator with phonegap

前端 未结 16 2102
抹茶落季
抹茶落季 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:36

    You could at least log debug stuff to the adb console by calling console.log() in JavaScript. Maybe that would suffice?

    To view log output using adb, navigate to your SDK platform-tools/ directory and execute:

    adb logcat
    

    See logcat Command-line Tool

提交回复
热议问题