Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
184
rated 0 times [  186] [ 2]  / answers: 1 / hits: 57391  / 14 Years ago, thu, january 13, 2011, 12:00:00

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 windows 7 system? I have an ajax called with jsonp but no response on emulator. However, I can call that ajax with browser on windows. May I know what went wrong?


More From » android

 Answers
42

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


[#94234] Wednesday, January 12, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
daquanmilesw

Total Points: 57
Total Questions: 102
Total Answers: 110

Location: Wallis and Futuna
Member since Sat, Aug 6, 2022
2 Years ago
daquanmilesw questions
;