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?
Update Nov 2016: looks like this doesn't work anymore.
The easiest and one of the most powerful ways is using http://debug.phonegap.com (it uses Weinre in the background, if you care). You just
r4nd0m
,<script src="http://debug.phonegap.com/target/target-script-min.js#r4nd0m"></script>
into your index.html
http://debug.phonegap.com/client/#r4nd0m
and you will instantly be debugging your mobile web app.Things you can do (similar to Firebug or Web Inspector):